Pratibha,

The only thing I can think off right now is adding an interceptor/processor early on in the actual route that copies the information to the Camel message header instead of keeping it on the JBI MessageExchange

Gert

pratibhaG wrote:
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

Reply via email to