I would like to use OnException & OnComplition together in one route (Camel version 2.10.0.redhat-60024):
from("direct:camelTestEndpoint"). onCompletion(). log("onCompletion1"). log("onCompletion2"). log("onCompletion3"). end(). onException(Throwable.class). handled(true). log("onException"). end(). log("route") .throwException(new RuntimeException());
Although it does not work as I expect. Exception in main route causes onComplition route to stop after first processor (it is handled in PipelineHelper`s continueProcessing() method). Camel checks if exception was handled and if yes - stops the processing.
route onException onCompletion1
Is there I gentle way to say camel that it should skip this (without "CamelErrorHandlerHandled" property removal)?