Hi

I have question regarding using Camel JPA together with beans

Is it correctly understood if I’m using JPA in a bean, but does not directly
consume or sending to an endpoint via “jpa:”,  then i’m responsible for
creating the entity manager because the CamelEntityManager header is only
set when the route use the JPA URI protocol?
 
Will the solution be to injecting the JpaComponent in my bean, and create an
EntityManager and join the transaction, will that be a correct way or is
there a better way? 

Thanks!

Cheers,
Flemming



--
View this message in context: 
http://camel.465427.n5.nabble.com/Usage-JPA-in-a-bean-with-CamelJPA-tp5778349.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to