Re: choose action based on Number range ....

2012-03-14 Thread chrislovecnm
Take a look at http://camel.apache.org/message-router.html ... you could do a content based router to different endpoints. -- View this message in context: http://camel.465427.n5.nabble.com/choose-action-based-on-Number-range-tp5564787p5565348.html Sent from the Camel - Users mailing list

Re: choose action based on Number range ....

2012-03-14 Thread Claus Ibsen
Hi You can most likely do this with some xpath expression, but xpath can be a bit tricky to get working. The simple language have operator support, but you would need to extract the 123 number from the xpath first and set it in a temporary header .setHeader("subno").xpath("/API/Subno/text()") .c

choose action based on Number range ....

2012-03-14 Thread Omar Atia
Dear All, I have XML contains subscriber number : 123 We are having number ranges to send http request to one of three servers. 100-->200 Loadbalancer A. 200-->300 Loadbalancer B. 300-->400 Loadbalancer C. How to implement that in simple language ? I need to decide based on the subno coming