ActiveMQ Camel TomcatPage added by Claus IbsenEmbedded ActiveMQ Broker with Camel running in Apache Tomcat exampleAvailable as of Camel 2.11 This example shows how you can embed Apache ActiveMQ Broker and Camel in a web application, which can run on Apache Tomcat or other web containers. This example embeds ActiveMQ Broker and a Camel application which will continuously send a message per second to an inbox queue. Building and Running exampleYou will need to build this example first: mvn install Which will create a .war file in the target directly. You can then deploy this .war file in any web container such as Apache Tomcat, by copying the .war file to its /webapp directory.
The broker.xml file is located in the src/main/resources directory and contains: The camel-context.xml file is located in the src/main/resources directory and contains: JMXYou can use JConsole to get details about the running ActiveMQ. This is done by starting up jconsole, and in the remote services input box, type in
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Camel > ActiveMQ Camel Tomcat confluence
- [CONF] Apache Camel > ActiveMQ Camel Tomcat confluence
