Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
Embedded ActiveMQ Broker with Camel running in Apache Tomcat example
Available 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 example
You will need to build this example first:
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.
For example to start Apache Tomcat
And then build the example and deploy to Apache Tomcat
This example is a web application which mean we have a
We have two Spring XML files that embed
You can use JConsole to get details about the running ActiveMQ and Camel. This is done by starting up jconsole, and then under local processes,