I have following configuration:
exception(java.net.ConnectException.class)
.maximumRedeliveries(3).useExponentialBackOff().initialRedeliveryDelay(60000).backOffMultiplier(2.0)
.to("jbi:service:http://servicemix.in2m.com/samples/http/bean1Service?mep=in-out")
.to("jbi:service:service:http://servicemix.in2m.com/samples/http/errorHandler");
from("jbi:service:http://servicemix.in2m.com/samples/http/jmsConsumer1")
.to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService?mep=in-out");
Here everything works fine. The flow is like this:
1)take a message from jmsconsumer.
2)give the mesage to myproviderservice.
3)If myproviderservice is DOWN, the message is retried for 3 times and then
sent to bean1service.
Now in bean1service I want to get the name of the service where the message
was suppossed to send ( the name of the service for which I got connection
refused error). How can I get this information? I tried to use
getServiceEndPoint() method but it returns me bean1Service. How can I get
MyProviderService ?
Please help.
Pratibha
--
View this message in context:
http://www.nabble.com/How-to-get-original-sevice-name-in-dead-letter-channel--tp18231948p18231948.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.