Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: activemq camel example moved

...

Wiki Markup
{snippet:id=example|lang=java|url=activemq/trunk/activemq-corecamel/src/test/java/org/apache/activemq/camel/component/ActiveMQRouteTest.java}

...

Wiki Markup
{snippet:id=e5|lang=java|url=activemq/camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java}

What happens?

From the ProducerTemplate - we send objects (in this case text) into the CamelContext to the Component test-jms:queue:test.queue. These text objects will be converted automatically into JMS Messages and posted to a JMS Queue named test.queue. When we set up the Route, we configured the FileComponent to listen of the test.queue.

...