I was just running a test with ActiveMQ 5.1.0 and Camel 1.5-SNAPSHOT and all seems to work fine. Whats your JMS broker/version and Camel version?

selezovikj wrote:
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
Queue1. 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
org.apache.camel.component.jms.JmsBinding.extractBodyFromJms(JmsBinding.java:97)

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");




Reply via email to