Hi,

I'm using Camel 1.6 with ServiceMix 3.3.

This is my route :
JBI JMS consumer (with ServiceMix) -> Camel JBI endpoint -> Bean.

My JMS consumer is XA transacted and when it fails to call the Camel JBI
endpoint, the JMS Message is rolledback into the queue (this is what I
want).

But if I call the JBI Camel endpoint, and if my bean throws an Exception,
the JMS message is not rolledback into the queue. I want the transaction to
be rolledback on any errors in the Camel routes.
Here is my configuration

    from("jbi:endpoint:http://esb/CamelTransac/transac";)
            .to(LOG)
            .beanRef("routes", "erreur");


    public void erreur() throws Exception {
        Thread.sleep(1000);
        throw new Exception("erreur !");
    }

I have tried to set errorHandler(noErrorHandler()), but it does the same
thing.

Any ideas ?

Thanks !
Raphaël

Reply via email to