Atomikos Forum |
|
We are using:
Spring 3.1.2 Atomikos 3.8 Hibernate 4.1.9 JPA 2.0 We think we configured everything correctly, however, we are getting an issue where flush() is not being called at the end of the transaction. I found the following solution: <entry key="javax.persistence.transactionType" value="jta"/> <entry key="hibernate.transaction.factory_class" value="org.hibernate.ejb.transaction.JoinableCMTTransactionFactory"/> However, JoinableCMTTransactionFactory is no longer a class in hibernate 4.1.9. Does anyone have a solution for the current set of these libraries or can post a working example (that also automatically calls flush() at the end of the tx)? Thanks. -AP_
There is an excellent example configured in Java only (no XML) written by Josh Long on the SpringSource Blog. You might find it useful.
http://blog.springsource.org/2011/08/15/configuring-spring-and-jta-without-full-java-ee/ |