camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Camel - error handling
Date Wed, 27 Jun 2012 20:38:53 GMT
No, you can also do the following:
onException(OrderFailedException.class)
  .handled(true)
  .bean(ErrorHandlerBean.class, "orderFailed")
  ...
  .to("mock:error");

Best,
Christian

On Wed, Jun 27, 2012 at 8:17 PM, dgallagher <damien.gallagher@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?
>
> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message