Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4010

XATerminator interrface of TxManager is not including error codes in XAExceptions thrown

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.5.GA
    • JCA service
    • None

      According to the javadoc for XATerminator, it should include an error code in the XAException thrown:
      e.g. see
      http://java.sun.com/j2ee/1.4/docs/api/javax/resource/spi/XATerminator.html#prepare(javax.transaction.xa.Xid)

      This is similar to the fix for the JBossXALocalException done in JBAS-2807

      However, our XATerminator impl in TxManager is not including the error code in the thrown XAException.

      I'm attaching a diff that shows how to fix this for prepare(), i.e. add XA_RBROLLBACK
      but this also needs doing for the other methods commit/forget/rollback
      and tests creating to prevent regression.

              jpederse@redhat.com Jesper Pedersen
              adrian.brock Adrian Brock (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: