Hi I am no JBI / ServiceMix expert, but I noticed that the endpoint is different:
jbi:service:http://servicemix.in2m.com/operations/updateprofile/ResolvedErrorService jbi:service:http://servicemix.in2m.com/operations/updateprofile/ResolvedErrorConsumerService Is this correct? Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: pratibhaG [mailto:[EMAIL PROTECTED] Sent: 19. juli 2008 12:08 To: [email protected] Subject: Re: How to route using java DSL? 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.
