This sounds like a content based routing, using <xpath>/error/service = 'serviceA'</xpath> http://activemq.apache.org/camel/content-based-router.html
2008/7/18 pratibhaG <[EMAIL PROTECTED]>: > > Suppose I have following message in queue: > <error> > <service> > serviceA > </service> > <request> > changePassword > <request> > </error> > > How can I make a routing like this: > 1)If my <service> tag contains serviceA send <request> it to httpConsumer1 > 2)If my <service> tag contains serviceB send <request> it to httpConsumer2 > > How to do it in DSL? > > > > -- > View this message in context: > http://www.nabble.com/How-to-route-using-java-DSL--tp18528825s22882p18528825.html > Sent from the Camel - Development mailing list archive at Nabble.com. > > -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
