How to send the same message to multiple endpoints has been created by Claus Ibsen (Oct 01, 2008).

Content:

How to send the same message to multiple endpoints

When you need to send the same message to multiple endpoints then you should use Multicast.

In the sample below we consume messages from the activemq queue foo and want to send the same message to both seda:foo and seda:bar. Sending the same message requires that we use Multicast:

from("activemq:queue:foo").multicast("seda:foo", "seda:bar");

Pipeline is default in Camel

If you have a route such as:

from("activemq:queue:foo").to("seda:foo", "seda:bar");

It is default a pipeline in Camel (that is the opposite to Multicast).

Reply via email to