Membrane ESB as a a JBoss Service
Membrane ESB can be installed as a JBoss Service providing the following benefits:
- JBoss can startup and shutdown the router as needed.
- The router runs in the same VM as JBoss and no extra VM is needed.
- Deployment fits for production in a data center.
Building the MBean for the router and installing it in JBoss requires the following steps:
1. Checkout the Membrane Source Code
Checkout the source code from the following location:
https://predic8.com/svn/membrane/monitor/tags/2.0.0/com.predic8.membrane.core
Please choose the version 2.x.x you want to use.
2. Building the MBean
Excecute the following command from the directory where you checked out the sourcecode.
ant -f router-build.xml router-sar
The SAR archive will be build in build/router-service.sar.
3. Deploying the SAR in JBoss
Copy the router-service.sar archive into the JBoss deployment directory located at
[jbossDir]\server\default\deploy
Take a look at the logs of JBoss and you will notice that the router have been started. To test the router open the following URL in your browser:
http://localhost:2000/axis2/services/BLZService?wsdl
Hint: If the router doesn't start make sure that the port 2000 is not bound by another application.
Configuring the Router Service
The router is configured by the rules.xml and the monitor-beans.xml files. They are located in the SAR archive. To open the archive simply rename it into a zip file (e.g. router-service.zip). A description how to modify the configuration files can be found here.
