camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel - error handling
Date Thu, 28 Jun 2012 06:39:58 GMT
On Wed, Jun 27, 2012 at 8:17 PM, dgallagher <> wrote:
> Thanks Guys
> If I use the global exception handling (e.g. onException) with Java DSL, do
> i need to define a separate route that contains the onException code so that
> every route in the context will pick it up?

Yes with the Java DSL and if you use 2+ RouteBuilder classes, is that
if want to share
error handlers between them, you would need to create a base class
extending RouteBuilder. And
then let your route builders extend your base class. And in your base
class, do the global error handling.
And then remember to call super.configure().

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

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message