camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SaurabhNayar <Nayar.Saur...@gmail.com>
Subject Re: entity manager is injected as null in a camel bean but jpa: endpoint works fine
Date Tue, 05 Jan 2016 21:18:43 GMT
The EntityManager will not automatically join the transaction by using
@Transactional annotation.

You will have to write your transaction management code - and make entity
manager participate in the transaction. Kind of beats the purpose of using
Camel - if you have to take all that pain.



--
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-tp5775308p5775857.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message