Re: Apache Camel Exception Handling doubt

2022-06-19 Thread ski n
ic class MyCustomErrorHandler extends RouteConfigurationBuilder { > >@Override >public void configuration() throws Exception { > routeConfiguration("test-route-configuration-id") > .onException(Exception.class) > .handled(true) // discard the msg > .log(LoggingLe

Re: Apache Camel Exception Handling doubt

2022-06-17 Thread j vh
hrows Exception { routeConfiguration("test-route-configuration-id") .onException(Exception.class) .handled(true) // discard the msg .log(LoggingLevel.INFO, ">>>>> Hit this custom error handler: ${exception.message}") .end();

Re: Apache Camel Exception Handling doubt

2022-06-17 Thread Ephemeris Lappis
Hello. Ideally, I'd like to replace the long repetitive code from all the existing projects blueprints (and future projects too). We have something like the following sequence in every project : http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:cm="http://aries.apache.org/blueprint/xmlns/bl

Re: Apache Camel Exception Handling doubt

2022-06-17 Thread ski n
Hi, It's good to provide a code example to see what you tried. Have you also tried to combine it with route configuration? https://camel.apache.org/manual/route-configuration.html This is available from 3.12. Raymond On Thu, Jun 16, 2022 at 7:43 PM j vh wrote: > Hello, > btw... I'm using Ca

Re: Apache Camel Exception Handling doubt

2022-06-16 Thread j vh
Hello, btw... I'm using Camel 3.13.0 for this work. ...jvh003

RE: Apache Camel Exception Handling doubt

2022-06-16 Thread j vh
Hello, I am also trying to use global exception configuration in a Camel route that is built from a template. The template is created ok and the route created from it is also ok & working. But the global exception handling is not working as expected. Maybe there is another way to customize the

Apache Camel Exception Handling doubt

2022-03-31 Thread Chawla, Manan
Hey, I am trying to integrate Global OnException block with route template but the onException block isn’t getting executed. Can you please suggest me a way to get around this issue? Thank you Regards, Manan Chawla