Hello Saurabh,
    Even I was worried about the transaction handling part if I inject
entity manager from Spring instead of using the jpa://  endpoint supported
by the Camel JPA component. Our developers felt that jpa:// was helpful only
for Simple CRUD operations but in our case we do a lot of complex SQL and
joins so we wanted some way to inject entity manager in some DAO where we
can write our DB specific code. Pls suggest how to use JPA Component inside
some Camel bean. Currently we were able to get a handle to entity manager
using @PersistenceContext annotation inside a bean which is called from a
camel route and all data access methods in that bean are annotated as
@Transactional.



--
View this message in context: 
http://camel.465427.n5.nabble.com/entity-manager-is-injected-as-null-in-a-camel-bean-but-jpa-endpoint-works-fine-tp5775308p5775783.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to