public void commitLocal(LocalTxXid xid) throws JMSException
public void commitLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException
   public void commitLocal(LocalTxXid xid) throws JMSException   {      if (log.isTraceEnabled()) { log.trace("Commiting local xid=" + xid); }            TxState tx = removeTx(xid);            //Invalid xid      if (tx == null)      {         final String msg = "Cannot find transaction with xid:";         log.error(msg);                  throw new IllegalStateException(msg);      }            TransactionRequest request = new TransactionRequest();      request.requestType = TransactionRequest.ONE_PHASE_COMMIT_REQUEST;      request.txInfo = tx;      connection.sendTransaction(request);         }