Atomikos Forum

Distributed JPA and JMS

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?
Jan Kowalski Send private email
Saturday, September 17, 2011
 
 
Sorry, I meant that EntityManager is JPA capable.
Jan Kowalski Send private email
Saturday, September 17, 2011
 
 
Use the AtomikosDataSourceBean for JDBC and the AtomikosConnectionFactoryBean for JMS

HTH
Guy Pardon Send private email
Tuesday, September 27, 2011
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics