Membrane ESB as a Web Application
Membrane ESB can be installed as a Web App providing the following benefits:
- The Application Server can startup and shutdown the router as needed.
- The router runs in the same VM as the Servlet Container.
- Deployment fits for production in a data center.
Building the ESB war and installing it in a Servlet Container like Tomcat requires the following steps:
1. Checkout the Membrane Source Code
Checkout the source code from the following location:
https://predic8.com/svn/membrane/monitor/trunk/com.predic8.membrane.core/
2. Building the War
Excecute the following command from the directory where you checked out the sourcecode.
ant -f router-build.xml war
The war will be build in build/router.war.
3. Deploying the War in Tomcat
Copy the router.war into the Tomcat webapp directory located at
[tomcatDir]\webapps
Restart Tomcat. To test the router open the following URL in your browser:
http://localhost:9000/admin
Login with user admin and password membrane.
Hint: If the router doesn't start make sure that the port 9000 is not bound by another application.
Configuring the Router Service
The router is configured by the proxies.xml and the monitor-beans.xml files. They are located in the WEB-INF directory of the war file. To open the archive simply rename it into a zip file (e.g. router.zip). A description how to modify the configuration files can be found here.
