code: @Override
      public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException,
              SecurityException, IllegalStateException, SystemException
      {
          if (!setRollBackOnly)
          {
              for (ResourceManager implementor : implementors)
              {
                  if (implementor != null)
                  {
                      implementor.doCommit();
                  }
              }
              status = Status.STATUS_COMMITTED;
          }
          else
          {
              if (log.isDebugEnabled())
                  log.debug("Transaction is set for rollback only, processing rollback.");
  
              for (ResourceManager implementor : implementors)
              {
                  if (implementor != null)
                  {
                      implementor.doRollback();
                      status = Status.STATUS_ROLLEDBACK;
                  }
              }
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see javax.transaction.Transaction#commit()