Re: Converter not loading properly with Camel4

2023-10-18 Thread Kushagra Bindal
to use the camel-component-maven-plugin as well that > generates needed metadata files. > > Otherwise you can use the old 2.x way, where you need to turn on type > converter classpath scanner. > > https://camel.apache.org/manual/type-converter.html#_type_converter_registry >

Converter not loading properly with Camel4

2023-10-17 Thread Kushagra Bindal
Hi, While trying to migrate from Camel2-->Camel4, I am facing one challenge i.e. earlier in one of my class I use to have multiple converter methods which was working fine. But now with latest version, I observed that only 1st method of the converter class is loaded and rest are not loaded.

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-17 Thread Kushagra Bindal
t what is wrong here, so that I can try the same. Regards Kushagra On Fri, Aug 11, 2023 at 6:17 PM Kushagra Bindal wrote: > > 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

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 > > > > Re

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Kushagra Bindal
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 reacted accordingly. > > > > > > @Override > > public Processor createErrorHandler(Route

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Kushagra Bindal
thanks let me give it a try!! On Thu, Aug 10, 2023 at 2:37 PM Claus Ibsen wrote: > > context.getCamelContextExtension().addContextPlugin(UnitOfWorkFactory.class, > new MyUnitOfWorkFactory()); > > > On Thu, Aug 10, 2023 at 10:41 AM Kushagra Bindal > wrote: > > &

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Kushagra Bindal
); camelContext.setUseMDCLogging(true); camelContext.setUnitOfWorkFactory(customUnitOfWorkFactory); camelContext.getShutdownStrategy().setTimeout(10); camelContext.start(); Please suggest an alternative way of doing the same. On Thu, Aug 10, 2023 at 1:41 PM Kushagra Bindal wrote: > > Thanks Claus for the

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Kushagra Bindal
ing 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

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Kushagra Bindal
e the TIP in that api changes section > > On Thu, Aug 10, 2023 at 9:58 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 my UnitOfworkFactory using below pattern. &g

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,

Set UnitOfWorkFactory in CamelContext

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 my UnitOfworkFactory using below pattern. camelContext.setUnitOfWorkFactory(customUnitOfWorkFactory); Now with the latest version of Camel, I just wanted to understand the new mechanism of doing the same.