Messaging Bridge

Camel supports the Messaging Bridge from the EIP patterns.

How can multiple messaging systems be connected so that messages available on one are also available on the others?

image

Use a Messaging Bridge, a connection between messaging systems, to replicate messages between systems.

You can use Camel to bridge different systems using Camel Components and bridge the endpoints together in a Route.

Another alternative is to bridge systems using Change Data Capture.

Example

A basic bridge between two messaging systems (such as WebsphereMQ and JMS broker) can be done with a single Camel route:

  • Java

  • XML

from("mq:queue:foo")
  .to("jms:queue:foo")
<route>
    <from uri="mq:queue:foo"/>
    <to uri="jms:queue:foo"/>
</route>