tx.clearMessages(); TransactionRequest request = new TransactionRequest(TransactionRequest.ONE_PHASE_ROLLBACK_REQUEST, null, tx); connection.sendTransaction(request);
   public void rollbackLocal(LocalTxXid xid) throws JMSException   {      if (log.isTraceEnabled()) { log.trace("Rolling back local xid: " + xid); }      TxState tx = removeTx(xid);      if (tx == null)      {         final String msg = "Cannot find transaction with xid:" + xid;         log.error(msg);                  throw new IllegalStateException(msg);               }   }