I tried this:
from("timer://tutorial?fixedRate=true&period=30000")
.setBody(constant("<error><errorCode>1000</errorCode><message><req>rrrrr</req><service>http://servicemix.in2m.com/operations/updateprofile/DirectorService</service></message></error>"))
.choice().when(body()
.contains("<service>http://servicemix.in2m.com/operations/updateprofile/DirectorService</service>"))
.splitter(xpath("//error/message"))
.to("jbi:service:http://servicemix.in2m.com/operations/updateprofile/ResolvedErrorService");
from("jbi:service:http://servicemix.in2m.com/operations/updateprofile/ResolvedErrorConsumerService")
.choice().when(body()
.contains("<service>http://servicemix.in2m.com/operations/updateprofile/DirectorService</service>"))
.splitter(xpath("//message/req"))
.to("jbi:service:http://servicemix.in2m.com/operations/updateprofile/TestErrorService");
First route works fine. It sends <message> to ResolvedErrorService.
Then my ResolvedErrorConsumerService consumes it. But after that it does not
send the message to TestErrorService.
What I am missing?please help...........
Prtaibha
--
View this message in context:
http://www.nabble.com/How-to-route-using-java-DSL--tp18528825s22882p18543123.html
Sent from the Camel - Development mailing list archive at Nabble.com.