Hi,

I need some advice on how to handle an exception in a sub-route and how the
calling route can continue processing. It is easier to explain this with a
bit of code:

            from("direct:A")
                .to("direct:B")
                .to("direct:C");

            from("direct:B")
                .onException(Exception.class).handled(true).end()
                . code that throws an exception

            from("direct:C")
                ...

Now, if there is an exception in direct:B, direct:C never gets called.
Through debugging I found out that the pipeline in direct:A stops processing
because it checks an exchange property (Exchange.ERRORHANDLER_HANDLED). I'm
using Camel 2.0. Is there a way that the processing in direct:A continues
after the exception was handled in direct:B?

Thanks,
Jens
-- 
View this message in context: 
http://old.nabble.com/handled-exception-in-sub-route-tp26623326p26623326.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to