You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

There is an JMS message to File example that ships as part of the camel distribution. Download the source ???

Camel can be configured either by using Spring or directly in Java code (which this example does).

We start with creating a CamelContext - which is a container for Components, Routes etc:

Error formatting macro: snippet: java.lang.NullPointerException

There is more than one way of adding a Component to the CamelContext - explicitly - as we do here when we add the JMS Component:

Error formatting macro: snippet: java.lang.NullPointerException

or implicitly - when we set up the routing (as we do here for the FileComponent:

Error formatting macro: snippet: java.lang.NullPointerException

In normal use, an external system would be firing messages or events into directly into Camel through one if its Components or Containers or through o

  • No labels