camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Global exception policy across Route builder configure methods
Date Tue, 11 Sep 2012 14:20:43 GMT

You can create a base class, and setup those onException in the
configure method. And the in sub classes, call super.configure()

On Tue, Sep 11, 2012 at 6:04 AM, vishal1981
<> wrote:
> Hi,
> If I understand correctly, the onException() defined in the configure method
> of a Routebuilder is global across all routes subsequently defined in that
> method using the Camel DSL.
> Is there a way to make these onException() global across routebuilder such
> that I can define in one place something like,
> onException(myexception.class).to(mybean)
> onException(myexception2.class).to(mybean2)
> just once for apply it to all possible routes (some of which may be added
> later) in the given camel context irrespective of the route builder used to
> create them?
> Thanks in advance,
> -v-
> --
> 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