JBoss.orgCommunity Documentation
To create a component it may be easier (but not mandatory) to first create a package to contain it. This package should be created as a child of the <ratype-module>/src/main/java folder. To do this right-click on the src folder and select
→ . Give the new package a name using the popup dialog (shown below).
In case a new package is not created at this point, it can still be created in the Component wizard, but no validation is performed at that time, regarding the package naming conventions.
To create a new JAIN SLEE RA Type, right-click on the created package (or the module entry if the package is not yet created) and choose
→ as shown below.
A dialog should appear. Expand the JAIN SLEE item and choose JAIN SLEE Resource Adaptor Type. The dialog should now look like the following:
Click to get the following dialog:
The source folder and package dialogs will be completed if → has been selected from right-clicking on a package. Otherwise it may need to be chosen by selecting and selecting the desired locations or typing it's name in the appropriate field and it will be created in the end.
Name the RA Type; the name must end with "ActivityContextInterfaceFactory.java
". Then click to go to the component identity dialog, pictured below:
The Name, Vendor and Version fields are mandatory and are used by the SLEE to identify the RA Type. The description field is optional, but strongly recommended to be completed to allow easy identification of the RA Type in future.
After completing these fields click
to specify the Events supported by this RA Type.
This dialog allows you to specify which events can be fired by the Resource Adaptor Type implementation, select them from the top list (Available Events) by clicking . To remove them, select them from the bottom list (Selected Events) and click . When done, click to edit the RA Type's Activity Objects.
Here, the RA Type's Activity objects type can be set. Add an Activity object by clicking on and writing it's Java Type in the Activity Type column and selecting Create to have EclipSLEE creating the interface or not. An Activity type can be removed by selecting it in the table and clicking . To modify any of the fields, click on it and it should be possible to edit/change the value.
In this same wizard page, it is possible to define whether to create or not a Resource Adaptor SBB Interface (Provider) by checking or leaving unchecked the
checkbox.Once finished, click
to create the Resource Adaptor Type.can be clicked at any point after setting the Resource Adaptor Type's identity if a skeleton Resource Adaptor Type is required. It is not necessary to complete each wizard page first.
The Resource Adaptor Type Java file, MobicentsDemoActivityContextInterfaceFactory.java
(plus the remaining interfaces and classes which were selected at the wizard) is created in the specified package and opened for editing in the workspace. The ratype-jar.xml
deployment descriptor is updated to reflect the new ratype or created if not already present. The resulting workspace can be seen below.