Is there a way to get JBIExchange instance inside Camel.
I tried this:
exception(java.net.ConnectException.class)
.maximumRedeliveries(2).useExponentialBackOff().initialRedeliveryDelay(30000).backOffMultiplier(2.0)
.process( new Processor() {
public void process(Exchange exchange) {
System.out.println("******************
exchange"+exchange);
}
}
)
.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");
The print statement prints this:
****************** exchangeExchange[JbiMessage:
[EMAIL PROTECTED]:
{org.apache.camel.Redelivered=true, org.apache.camel.RedeliveryCounter=2}}]
How can I get the required information now? Please help. I am stuck
pratibha
--
View this message in context:
http://www.nabble.com/How-to-get-original-sevice-name-in-dead-letter-channel--tp18231948p18275668.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.