Why are you creating your own error handler implementation at all? What is special about it
On Thu, Aug 10, 2023 at 10:05 AM Kushagra Bindal <bindal.kusha...@gmail.com> wrote: > Hi, > > I am trying to upgrade my camel version from 2.25.4 to 4.0.0.M3. > > Earlier I use to set ErrorHandler using below pattern. > > from(customString) > .errorHandler(new RetrieveCustomErrorHandler()) > .convertBodyTo(CustomRetrieve.class) > .setProperty(JAXWS_METHOD_NAME_PROPERTY, constant("Retrieve")) > .to("direct:customEntryPoint") > .routeId(Routes.CUSTOM_RETRIEVE.getRouteId()); > > Earlier I used to implements ErrorHandlerFactory for > RetrieveCustomErrorHandler and use to override createErrorHandler() > method to return Processor Object. > > Now with the latest version of Camel, I just wanted to understand the > new mechanism of doing the same. > With the new ErrorHandlerFactory interface I am getting new methods named > as > > public ErrorHandlerFactory cloneBuilder() > > public boolean supportTransacted() > > Any suggestions/help will be appreciated. > > > > -- > Regards, > Kushagra > -- Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://www.manning.com/ibsen2