JBoss.orgCommunity Documentation

Chapter 5. Creating a JAIN SLEE Profile Specification

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 NewPackage. Give the new package a name using the popup dialog (shown below).

Figure 5.1. Creating a new Package in Eclipse


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 NewOther ... as shown below.

Figure 5.2. Creating a new JAIN SLEE Component in EclipSLEE


A dialog should appear. Expand the JAIN SLEE item and choose JAIN SLEE Profile Specification. The dialog should now look like the following:

Figure 5.3. Creating a new JAIN SLEE Profile Specification in EclipSLEE


Click Next 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 NewOther ... has been selected from right-clicking on a package. Otherwise it may need to be chosen by selecting Browse... 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 Next to go to the component identity dialog, pictured below:

Figure 5.5. JAIN SLEE Profile Specification Identity dialog in EclipSLEE


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 Next to modify the profile specification's CMP fields.

Figure 5.6. JAIN SLEE Profile Specification CMP Fields definition in EclipSLEE


To add a CMP field click on Add. This will add a blank row to the table. To edit the name of the field click on the row in the 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 Finish 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.

Figure 5.7. JAIN SLEE Profile Specification created in workspace using EclipSLEE