JBoss.orgCommunity Documentation
EclipSLEE provides means to create, edit and delete JAIN SLEE Profile Specifications.
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 <profile-spec-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 Profile Specification, 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 Profile Specification. The dialog should now look like the following:
Click to get the following dialog:
Figure 5.4. Selecting the package and name for a new JAIN SLEE Profile Specification in EclipSLEE
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 Profile Specification; the name must end with "ProfileCMP.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 profile specification. The description field is optional, but strongly recommended to be completed to allow easy identification of the profile specification in future.
After completing these fields click
to specify the profile specification's Libraries.
This dialog allows to select which JAIN SLEE Libraries this profile specification should reference in it's descriptor. Select them from the top list (Available Libraries) by clicking . To remove them, select them from the bottom list (Selected Libraries) and click .
When done click
to define the profile specification's CMP fields.
To add a CMP field click on Name column, enter the name and press enter. The type can be edited in the same way. The visible field controls visibility to management clients. The indexed field specifies whether or not the CMP field is an indexed attribute. A yes
value in the unique field indicates that the value stored in this field must be unique across all profiles of that profile specification. Please read the JAIN SLEE specification for further details on these parameters.
If the profile specification requires a custom abstract management class enable Create abstract management class.
Click
to create the profile specification.
The profile CMP Java file, MobicentsDemoProfileCMP.java
is created in the specified package and opened for editing in the workspace. Management interface and abstract management class (if selected) are also created in the selected package. The profile-spec-jar.xml
deployment descriptor is updated to reflect the new profile specification or created if not already present. The resulting workspace can be seen below.