On Thu, Jul 12, 2012 at 9:28 AM, Hilde <hilde.sch...@yahoo.de> wrote:
> Hello!
>
> thanks for help.
>
> It is about how route scoped exception handling can catch exceptions thrown
> in other
> routes (to("direct:otherRoute")).
>

The 2nd route will NOT use a route scoped error handler from ANOTHER route.

You can though configure the "otherRoute" to not use any error handler
(eg noErrorHandler),
then it will not use the global error handler, but let any exceptions
be propagated back as-is
to the caller route, which then can react.


But just write some small camel routes and try for yourself. Thats the
best way to learn.

> What about exceptions thrown in Beans? Are they propagated to the camel
> route
> or do they have to handled in Java as usual?
>

Any bean/processor etc that throw an exception is propagated back to
the Camel routing engine,
which then lets its error handling kick in, and decide what to do.



> Hilde
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Exception-handling-within-route-chains-tp5715862p5715925.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to