It looks really odd for me...
1) You select the Customers twice (in your polling JPA endpoint and in your
processor)
2) You create a new EntityManagerFactory each time the processor is called.

All what you should have to do is:

from("jpa://Customer")
  .process(new MyConverter())
  .to("jpa://Customer2")

And the processor should only convert Customer into Customer2.

Is it possible to use HSQLDB, H2 or Derby for the tests? With this it's
easier to run your project on my machine without setting up the database...

Best,
Christian

Reply via email to