Access Keys:
Skip to content (Access Key - 0)

5 Easy Steps to Deploying a JSLEE Component using Maven

Print this page
Quick check on your development environment
This page describes how to develop and deploy a JAIN SLEE SBB component in just a few minutes, using Maven. The main goal of this exercise is to provide a quick way to check that your development environment has been setup properly.

1. Create a project from an archetype

Create the project by executing the command mvn archetype:generate -DarchetypeCatalog=, selecting OpenCloud JAIN SLEE 1.1 SBB Archetype, and typing the groupId, artifactId, version and the Java package.

2. Configure and play with the code

Create the IDE configuration files for your IDE. For eclipse, execute the command mvn eclipse:eclipse in the project root directory. Import the project to the IDE, and make any changes as needed in the descriptors, Java source files or the file pom.xml.

3 Start Rhino and deploy and activate the service

Execute mvn clean install to create the deployable jar and the deployable unit. Check the directory target/jainslee.
Start Rhino 2.x and use the web console or the command-line console to deploy the deployable unit and activate the service.

4. Verify the deployment

Search the trace message for service activation — "Hello JAIN SLEE World". The log will print in the console where you activated Rhino, and stored in the log file (rhino.log). For more information, see Logging.

5. Undeploy the example and stop Rhino

Undeploy the example, and stop Rhino using one of the consoles.
Execute the command mvn clean to delete the temporary files and the deployable unit.

Try more components, and develop your own!
Assuming all is working fine, develop more JAIN SLEE components! See Maven Development for more information.
Adaptavist Theme Builder Powered by Atlassian Confluence