thanks let me give it a try!!

On Thu, Aug 10, 2023 at 2:37 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
>
> context.getCamelContextExtension().addContextPlugin(UnitOfWorkFactory.class,
> new MyUnitOfWorkFactory());
>
>
> On Thu, Aug 10, 2023 at 10:41 AM Kushagra Bindal <bindal.kusha...@gmail.com>
> wrote:
>
> > 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.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
> > <bindal.kusha...@gmail.com> wrote:
> > >
> > > 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/apache/camel/ExtendedCamelContext.java
> > >
> > > But now with the latest version it is not there.
> > >
> > > Am I missing something here?
> > >
> > > On Thu, Aug 10, 2023 at 1:33 PM Claus Ibsen <claus.ib...@gmail.com>
> > wrote:
> > > >
> > > > 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 <
> > bindal.kusha...@gmail.com>
> > > > 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.
> > > > >
> > > > > camelContext.setUnitOfWorkFactory(customUnitOfWorkFactory);
> > > > >
> > > > > Now with the latest version of Camel, I just wanted to understand the
> > > > > new mechanism of doing the same.
> > > > >
> > > > >
> > > > > --
> > > > > Regards,
> > > > > Kushagra
> > > > >
> > > >
> > > >
> > > > --
> > > > Claus Ibsen
> > > > -----------------
> > > > @davsclaus
> > > > Camel in Action 2: https://www.manning.com/ibsen2
> > >
> > >
> > >
> > > --
> > > Regards,
> > > Kushagra
> >
> >
> >
> > --
> > Regards,
> > Kushagra
> >
>
>
> --
> Claus Ibsen
> -----------------
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



-- 
Regards,
Kushagra

Reply via email to