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 Tue, 22 Nov 2011 22:03:36 GMT
Do you mean long (code) or slow (performance)?

I would expect something like:

from("jpa://XXX")
  .convertBodyTo(Foo.class)
  .to("jpa://YYY")

or

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

or

from("jpa://XXX")
  .to("bean://myConverter?method=convert")
  .to("jpa://YYY")

Right?

Best,
Christian

On Mon, Nov 21, 2011 at 1:11 PM, Idriss <doulmakhzoune@gmail.com> wrote:

> Thank you for your reply Christian,
>
> I managed to extract data from a database using JPA and insert them into
> another database using a Processor, but this procedure is very long. Is
> there a way to optimize the insertion of these data in the database?
>
> Regards
> Idriss
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5010354.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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