I have two REST url's one to check rest url for options second to process
from another rest url.
i want to route first url "returnu" through xpath and then call another rest
service url "query url" and process it
Code snippet are as follows.
try {
context.start();
RouteBuilder builder=new RouteBuilder() {
@Override
public void configure() throws Exception {
from(returnU)
.choice()
.when(xpath("//oprncode = 'ATM'"))
///////////here i want to call
another rest url and process it after it has cleared the condition of the
xpath/////////
.process(new Processor() {
////process
})
.when(xpath("//oprncode = 'NETB'"))
.to("direct:b")
.when(xpath("//oprncode = 'REPT'"))
.to("direct:c")
.otherwise()
.process(new Processor() {
@Override
public void
process(Exchange data) throws Exception {}
});
}
};
context.addRoutes(builder);
}
--
View this message in context:
http://camel.465427.n5.nabble.com/routing-with-camel-tp5747239.html
Sent from the Camel - Users mailing list archive at Nabble.com.