Hi

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


On Tue, Sep 11, 2012 at 6:04 AM, vishal1981
<vishal.changr...@ericsson.com> 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: 
> http://camel.465427.n5.nabble.com/Global-exception-policy-across-Route-builder-configure-methods-tp5719075.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