/** Sets the transaction timeout */
  public boolean setTransactionTimeout(int seconds) throws XAException {
    if (seconds == _transactionTimeout) return true;

    XAResource xaResource = _xaResource;

    _transactionTimeout = seconds;

    if (xaResource == null) return true;
    else if (seconds == 0) return xaResource.setTransactionTimeout(_defaultTransactionTimeout);
    else return xaResource.setTransactionTimeout(seconds);
  }
 @Override
 public boolean setTransactionTimeout(int i) throws XAException {
   return xaResource.setTransactionTimeout(i);
 }
 @Override
 public boolean setTransactionTimeout(int seconds) throws XAException {
   return resource.setTransactionTimeout(seconds);
 }