[jbossts-issues] [JBoss JIRA] Created: (JBTM-664) The JTA transaction synchronization don't respect the JTA 1.1 specification

Olivier BILLIARD (JIRA) jira-events at lists.jboss.org
Tue Dec 1 09:22:31 EST 2009


The JTA transaction synchronization don't respect the JTA 1.1 specification
---------------------------------------------------------------------------

                 Key: JBTM-664
                 URL: https://jira.jboss.org/jira/browse/JBTM-664
             Project: JBoss Transaction Manager
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: JTA
    Affects Versions: 4.5.0,  4.6.1.CP04
         Environment: jboss AS 5.0.1 GA
            Reporter: Olivier BILLIARD
            Priority: Critical


According to the JTA 1.1 specification, the registerInterposedSynchronization must throw an IllegalStateException if the no transaction is active ( http://java.sun.com/javaee/5/docs/api/javax/transaction/TransactionSynchronizationRegistry.html#registerInterposedSynchronization(javax.transaction.Synchronization) ). The current code throw a RuntimeException. It's a problem because some third party framework, like Spring, only catch RollbackException, SystemException and IllegalStateException.

It'll be great to modify the registerInterposedSynchronization method for throwing the expected exception.
I attach the corrected source file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list