Hi,

Do you create an entitymanager factory for each message?

- Romain

Le 23 nov. 2011 00:40, "Idriss" <doulmakhzo...@gmail.com> a écrit :

> Hi,
>
> I mean with long that is slow.
> I'm using this :
>
> from("jpa://XXX")
>  .process(new MyProcess())
>
> and in the class MyProcess I'm using EntityManagerFactory, EntityManager
> and
> TransactionManager (with myTransManager.begin() and
> myTransManager.commit(),
> and I think that is the cause of low performance?).
>
>
>
> Best,
>
> Idriss
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5015124.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to