camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fbarbat <>
Subject DefaultErrorHandler and "nested" routes
Date Thu, 12 Sep 2013 14:29:18 GMT

I have these routes:


from("direct:b").routeId("2").process(new ThrowingExceptionProcessor());
from("direct:c").routeId("3").process(new OkProcessor());

from("direct:d").routeId("4").process(new ExceptionProcessor());

Let's suppose a message comes to route 1. If ThrowingExceptionProcessor
throws an exception I would expect that the exception would be handled by
the onException clause. However, it looks like the exception is propagated
directly to the consumer ("direct:a"). How can I force the exceptions thrown
inside "child routes" to be managed by the onException clause?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message