Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-664

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.10.0, 4.6.1.CP04
    • 4.5.0, 4.6.1.CP03
    • JTA
    • None

    Description

      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.

      Attachments

        Activity

          People

            rhn-engineering-jhallida Jonathan Halliday
            obilliard Olivier BILLIARD (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: