HHH-13076 - Hibernate 'Transaction already active' behaviour with JTA transaction manager
This commit is contained in:
parent
0fa4b50188
commit
a15dfe0e05
|
@ -72,8 +72,14 @@ public class TransactionImpl implements TransactionImplementor {
|
|||
|
||||
// per-JPA
|
||||
if ( isActive() ) {
|
||||
if ( jpaCompliance.isJpaTransactionComplianceEnabled()
|
||||
|| !transactionCoordinator.getTransactionCoordinatorBuilder().isJta() ) {
|
||||
throw new IllegalStateException( "Transaction already active" );
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
LOG.debug( "begin" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue