camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: CSV to database
Date Wed, 23 Nov 2011 08:05:28 GMT
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 <doulmakhzoune@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message