camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: How to route using java DSL?
Date Fri, 18 Jul 2008 14:07:40 GMT
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 <pratibha.ghogale@in2m.com>:
>
> 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

Mime
View raw message