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 early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
Message BusCamel supports the Message Bus from the EIP patterns. You could view Camel as a Message Bus itself as it allows producers and consumers to be decoupled. Folks often assume that a Message Bus is a JMS though so you may wish to refer to the JMS component for traditional MOM support. Of course there are also ESB products such as Apache ServiceMix which serve as full fledged message busses.
ExampleThe following demonstrates how the Camel message bus can be used to communicate with consumers and producers Using the Fluent Builders from("direct:start") .pollEnrich("file:inbox?fileName=data.txt") .to("jms:queue:foo");
Using the Spring XML Extensions <route> <from uri="direct:start"/> <pollEnrich uri="file:inbox?fileName=data.txt"/> <to uri="jms:queue:foo"/> </route> Using This PatternIf you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out. |