camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From selezovikj <>
Subject Re: Camel Routing - Spring Configuration
Date Wed, 08 Oct 2008 15:15:26 GMT

I actually tested the Java DSL and it works without the "multicast" keyword. 

In the camel DSL, without using the multicast keyword it only send to
When I use the multicast keyword it does not send to any queues. 
And it gives an error like: 

Can't build body from bytes. 

Error at

Do you have any idea why is this so ? 

janstey wrote:
> Actually, looks like the docs are a bit misleading. If you want the same
> message routed to all destinations, you'll need to wrap the outputs in a
> multicast element
> <route>
>   <from uri="jms:numbers"/>
>   <multicast>
>     <to uri="jms:Queue1"/>
>     <to uri="jms:Queue2"/>
>     <to uri="jms:Queue3"/>
>   </multicast>
> </route>
> and also modify your Java DSL to
> from("jms:numbers").multicast().to("jms:queue:Queue1", "jms:queue:Queue2",
> "jms:queue:Queue3");

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message