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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
