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.
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
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
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
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,
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