Atomikos Forum |
|
Hi,
I'm trying trying to perform atomic and safe operation using XA protocol between database update (JPA via Hibernate) and sending a message to the queue. I configured hibernate properties so the entity manager is not JPA capable. Instead of using EntityTransaction I create a UserTransaction. How to "bind" jms XAConnectionFactory to this so the whole transaction will be atomic and only two successful commit will commit the operation. If I want to skip the auto transaction and actually write all the operations myself how to enlist enlist entity manager instead of the connection? |