Any good reason not to do it like this?

from("jpa://XXX")
  .process(new MyConverter())
  .to("jpa://YYY")

or

from("jpa://XXX")
  .transacted()
  .process(new MyConverter())
  .to("jpa://YYY")

Best,
Christian

On Wed, Nov 23, 2011 at 12:39 AM, Idriss <doulmakhzo...@gmail.com> wrote:

> 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