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.

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Claus Ibsen
Hi Read the migration guides https://camel.apache.org/manual/camel-4-migration-guide.html See 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 UnitOf

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Kushagra Bindal
Thanks Claus for the quick response. I checked that already, and in the earlier version of Camel it use to have ExtendedCamelContext which usually contained the setUnitOfWorkFactory method. Please refer : https://jar-download.com/artifacts/org.apache.camel/camel-api/3.0.0-M3/source-code/org/apach

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Kushagra Bindal
Earlier we use to initiate the CamelContext object using below mechanism. If you will notice that we use to set UnitOfWorkFactory, which is now not available neither in CamelContext nor into ExtendedCamelContext CamelContext camelContext = new SpringCamelContext(applicationContext); camelContext.s

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Claus Ibsen
context.getCamelContextExtension().addContextPlugin(UnitOfWorkFactory.class, new MyUnitOfWorkFactory()); On Thu, Aug 10, 2023 at 10:41 AM Kushagra Bindal wrote: > Earlier we use to initiate the CamelContext object using below > mechanism. If you will notice that we use to set UnitOfWorkFactory,

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: > > > Earlier we use to initiate the Cam