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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 4.5.0, 4.6.1.CP03
    • Fix Version/s: 4.10.0, 4.6.1.CP04
    • Component/s: JTA
    • Labels:
      None
    • Environment:

      jboss AS 5.0.1 GA

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jhalliday Jonathan Halliday
                Reporter:
                obilliard Olivier BILLIARD
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: