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