Hi
That is a good question. I do have an idea for a workaround. You can set a
special header property on the from("xxx").setHeader("path", "xxx").to(...)
routes so you check this header what was the "path".
However I do think that we in Camel should have a kind of exchange context
where you would be able to track the "current route flow" so you could get hold
of the previous route node so you could check its actual path taken in the
routes.
We have indirect some tickets for this (trace needs to be able to log the from
part too, we need encoding options on the exchange etc.). So when James and
some of the other smart people have time in the future I am sure we will have
an elegant solution to your problem.
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: 11. juli 2008 07:39
To: [email protected]
Subject: How to catch errors locally on the path
I have configuration like this:
exception(java.lang.Throwable.class)
.to("jbi:service:http://servicemix.in2m.com/samples/http/bean3Service?mep=in-out")
.to("jbi:service:http://servicemix.in2m.com/samples/http/bean2Service?mep=in-out");
from("jbi:service:http://servicemix.in2m.com/samples/http/httpConsumer")
.to("validator:updatepassword.xsd")
.to("jbi:service:http://servicemix.in2m.com/samples/http/jmsProviderService?mep=in-only")
.to("jbi:service:http://servicemix.in2m.com/samples/http/bean2Service");
from("jbi:service:http://servicemix.in2m.com/samples/http/jmsConsumer")
.to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService1?mep=in-out")
.to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService2?mep=in-out");
When I send a message to
"http://servicemix.in2m.com/samples/http/MyProviderService1" or
"http://servicemix.in2m.com/samples/http/MyProviderService2" it may send
Connection Exception and the message moves to
"service:http://servicemix.in2m.com/samples/http/bean3Service".
Now in "service:http://servicemix.in2m.com/samples/http/bean3Service" how
would I know that which service was down, either
"service:http://servicemix.in2m.com/samples/http/MyProviderService1" or
"service:http://servicemix.in2m.com/samples/http/MyProviderService2"?
Please help. I am trying a lot but not getting a way to do this.
-Pratibha
--
View this message in context:
http://www.nabble.com/How-to-catch-errors-locally-on-the-path-tp18397098s22882p18397098.html
Sent from the Camel - Users mailing list archive at Nabble.com.