We're updating the issue view to help you get more done. 

Reusing same EntityTransaction with JTA enabled

Description

When JTA is enabled, it seems impossible to reuse the same Transaction instance.

1 2 3 4 5 6 The error log is: java.lang.IllegalStateException: Physical-transaction delegate is no longer valid at org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorImpl$TransactionDriverControlImpl.errorIfInvalid(JtaTransactionCoordinatorImpl.java:425) at org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorImpl$TransactionDriverControlImpl.begin(JtaTransactionCoordinatorImpl.java:417) at org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:80) at org.hibernate.test.transaction.JtaReusingEntityTransactionTest.testSave(JtaReusingEntityTransactionTest.java:31)

...

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Fabio Massimo Ercoli

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.3.0.CR2

Priority

Major