code: @Override
      public final void commit() throws XAException
      {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "commit", new Object[] { _resource, _xid, getPriority() });
          if (tcSummary.isDebugEnabled())
              Tr.debug(tcSummary, "xa_commit", this);
          if (tc.isDebugEnabled())
              Tr.debug(tc, "Committing resource with priority " + getPriority());
  
          try {
              if (_state == FAILED)
                  _resource = reconnectRM();
  
              _resource.commit(_xid, false);
  
              // Record the completion direction
              _completedCommit = true;
  
              destroy();
          } catch (XAException xae) {
              _completionXARC = xae.errorCode;
              // Record the completion XA return code
              FFDCFilter.processException(xae, "com.ibm.ws.Transaction.JTA.JTAXAResourceImpl.commit", "317", this);
              throw xae;
          } finally {
              if (tc.isEntryEnabled())
                  Tr.exit(tc, "commit");
              if (tcSummary.isDebugEnabled())
                  Tr.debug(tcSummary, "xa_commit result: " +
                                      XAReturnCodeHelper.convertXACode(_completionXARC));
          }
      }
docs: Commit a transaction.
  
  @exception XAException