} else {
//TODO cache the known xids so we don't keep recreating this one??
x = new ActiveMQXid(xid);
}
XATransactionInfo info = new XATransactionInfo();
info.setXid(x);
info.setType(XATransactionInfo.PRE_COMMIT);
try {
// Find out if the server wants to commit or rollback.
IntResponseReceipt receipt = (IntResponseReceipt) this.connection.syncSendRequest(info);
return receipt.getResult();