|
Page Edited :
CAMEL :
How to send the same message to multiple endpoints
How to send the same message to multiple endpoints has been edited by Claus Ibsen (Oct 02, 2008). Content:How to send the same message to multiple endpointsWhen 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. This is done by adding the multicast() before the to type: from("activemq:queue:foo").multicast().to("seda:foo", "seda:bar");
|
Unsubscribe or edit your notifications preferences
