Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

This example is a web application which mean we have a web.xml file in the web-inf src/main/webapp/WEB-INF directory. The code is as follows: TODO :e1

Wiki Markup
{snippet:id=e1|lang=xml|url=camel/trunk/examples/camel-example-activemq-tomcat/src/main/webapp/WEB-INF/web.xml}

We have two Spring XML files that embed

  • broker.xml to embed Apache ActiveMQ broker
  • camel-

...

  • config.xml to embed Apache Camel with the routes

The broker.xml file is located in the src/main/resources directory and contains:
TODO: e1

Wiki Markup
{snippet:id=e1|lang=xml|url=camel/trunk/examples/camel-example-activemq-tomcat/src/main/resources/broker.xml}

The camel-contextconfig.xml file is located in the src/main/resources directory and contains: TODO: e1

Wiki Markup
{snippet:id=e1|lang=xml|url=camel/trunk/examples/camel-example-activemq-tomcat/src/main/resources/camel-config.xml}

JMX

You can use JConsole to get details about the running ActiveMQ and Camel. This is done by starting up jconsole, and in the remote services input box, type in

...

then under local processes,
select the process which has catalina in the name (catalina is Apache Tomcat).

See Also