JBoss.orgCommunity Documentation
EclipSLEE provides means to create, edit and delete JAIN SLEE Services.
The JAIN SLEE Service does not have a Maven module, instead it's part of the Deployable Unit module resources.
To create a new JAIN SLEE Service, expand completely the du module folders, right-click on the resources folder and select
→ as shown below.
A dialog should appear. Expand the JAIN SLEE item and choose JAIN SLEE Service. The dialog should now look like the following:
Click to get the following dialog:
The source folder dialog will be completed if → has been selected from right-clicking on the deployable unit module resources folder. Otherwise it may need to be chosen by selecting and selecting the desired location.
Name the service; the name must end with "service.xml
", then click to specify the service's SLEE identity.
The Name, Vendor and Version fields are mandatory and are used by the SLEE to identify the event. The description field is optional, but strongly recommended to be completed to allow easy identification of the service in future.
After completing these fields click
to select a root SBB.
All available root SBBs are listed in the table. Select the one that should be used for this service.
Check the following if your SBB is not listed:
Does the SBB have at least one initial event? That is, an event with direction Receive
or FireAndReceive
, marked as initial-event
and has at least one initial event selector.
Is the SBB shown in the project source list? If not, please cancel the Service wizard, refresh the project so it shows up and try again.
Specify the default event priority, and if available for your root SBB, enable or disable Specify service address profile table
as required.
Click
to create the service.The service descriptor is created in the specified folder and opened for editing in the workspace. The resulting workspace can be seen below.
It is possible with EclipSLEE to edit existing components. When right-clicking on the *-service.xml descriptor a similar menu should be shown:
After selecting the desired Service, the menu shown allows you to select one of the following actions to modify:
This operation can be accessed by selecting Identity... and allows to change the JAIN SLEE Service identity (name, vendor, version) and it's description. The following dialog is presented:
This operation can be accessed by selecting Root SBB... and allows to change which SBB is to be the Root SBB for this Service. The following dialog is presented:
It is possible with EclipSLEE to delete existing components. Right-clicking in the JAIN SLEE Service XML descriptor file (see Section 7.2, “Editing a JAIN SLEE Service”) and selecting the Delete option.
A confirmation dialog similar to the following should be presented:
Deleting a component is an irreversible operation, so it should be used carefully.