Tom Jenkinson created AS7-3335:
----------------------------------
Summary: JPA after_completion Synchronization expects to be able to
TransactionSynchronizationRegistry::putResource on a committed (i.e. inactive)
transaction
Key: AS7-3335
URL:
https://issues.jboss.org/browse/AS7-3335
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Reporter: Tom Jenkinson
Assignee: Scott Marlow
The JPA has registered an after_completion which incorrectly attempts to call putResource
on the TransactionSynchronizationRegistry as the transaction is committed (therefore
inactive).
Offending code is in the jboss-as-jpa module:
org.jboss.as.jpa.transaction.TransactionUtil.SessionSynchronization.afterCompletion
getInstance().putEntityManagerInTransactionRegistry(scopedPuName, null);
This is incorrect according to the specification as the transaction is now inactive:
http://jcp.org/aboutJava/communityprocess/maintenance/jsr907/907ChangeLog...
Note, this was allowed in version 4.16.0.Final (and likely below) of JBoss Transactions,
though it is now being fixed - sorry!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira