You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ashwin Karpe <as...@progress.com> on 2010/09/07 16:12:41 UTC

Re: Multiple Context

Hi,

The answer is yes...

What is more, you need not create 50 routes as you have in your example. You
can also do it as

<route> 
      <from uri="jms:topic:topic1"/>
      <from uri="jms:topic:topic2"/>
      <from uri="jms:topic:topic3"/> 
      <to uri="bean:msgParser"/> 
      <to uri="bean:msgProcessor"/> 
</route>

Since the destinations remain the same (i.e bean:msgParser followed by
bean:msgProcessor), you can club all the from topic destinations as shown
above. All of the above topic destinations will send the exchange to
bean:msgParser.

Cheers,

Ashwin...
      

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
Progress Software Corporation
http://fusesource.com http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com.com
http://opensourceknowedge.blogspot.com 
---------------------------------------------------------
-- 
View this message in context: http://camel.465427.n5.nabble.com/Multiple-Context-tp1925788p2806134.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.