Message Bus

Camel 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.

image

A messaging system such as Apache ActiveMQ can be used as Message Bus.

Example

The following demonstrates how the Camel message bus can be used to ingest message into the bus with the JMS component.

  • Java

  • XML

from("file:inbox")
    .to("jms:inbox");
<route>
    <from uri="file:inbox"/>
    <to uri="jms:inbox"/>
</route>