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.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? > > 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. >