Re: Upgrade to Camel Version Set ErrorHandler

2023-08-17 Thread Kushagra Bindal
Hi Claus, Compilation was successful, but during junit execution it is now throwing errors. So if I summaries it then I was trying to execute below code. from(customString) .errorHandler(new RetrieveCustomErrorHandler()) .convertBodyTo(CustomRetrieve.class) .setProperty(JAXWS_METHOD_N

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-11 Thread Kushagra Bindal
Was able to resolve this, thanks for your input. On Thu, Aug 10, 2023 at 5:11 PM Kushagra Bindal wrote: > > Do you have any handy sample with you which I can refer to for this case? > > On Thu, Aug 10, 2023 at 2:34 PM Claus Ibsen wrote: > > > > Hi > > > > Read the javadoc of those methods what t

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Kushagra Bindal
Do you have any handy sample with you which I can refer to for this case? On Thu, Aug 10, 2023 at 2:34 PM Claus Ibsen wrote: > > Hi > > Read the javadoc of those methods what they do and just implement what you > need - its in the name also - supportsTransaction etc. > > On Thu, Aug 10, 2023 at 1

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Claus Ibsen
Hi Read the javadoc of those methods what they do and just implement what you need - its in the name also - supportsTransaction etc. On Thu, Aug 10, 2023 at 10:29 AM Kushagra Bindal wrote: > Earlier the usage was to be like that as I mentioned here... We > usually checked on AsyncCallback and r

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Kushagra Bindal
Earlier the usage was to be like that as I mentioned here... We usually checked on AsyncCallback and reacted accordingly. @Override public Processor createErrorHandler(RouteContext routeContext, Processor processor) { return new DelegateAsyncProcessor(processor) { @Override pu

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Claus Ibsen
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 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(custo

Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Kushagra Bindal
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("Retri