On Wed, Jun 27, 2012 at 8:17 PM, dgallagher <damien.gallag...@gmail.com> 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: 
> http://camel.465427.n5.nabble.com/Camel-error-handling-tp5715132p5715177.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