Changes committed to the database immediately when using the Hibernate Work API in EAP 6
Issue
- A persistence unit is defined and bound to a datsource using
<jta-data-source>in thepersistence.xml UserTransactionis used to begin/commit a transaction- After executing a database write using the Hibernate Work API the write is seen to be committed without
UserTransaction.commit() - Even calling
UserTransaction.rollback()does not rollback the writes
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- Hibernate 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.