camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From janstey <jans...@gmail.com>
Subject Re: Camel Routing - Spring Configuration
Date Wed, 08 Oct 2008 14:57:34 GMT

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: http://www.nabble.com/Camel-Routing---Spring-Configuration-tp19880117s22882p19880541.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message