if (info.getType() == XATransactionInfo.PRE_COMMIT) {
int rc = this.brokerConnector.prepareTransaction(this, info.getXid());
// We will be sending our own receipt..
info.setReceiptRequired(false);
// Send the receipt..
IntResponseReceipt receipt = new IntResponseReceipt();
receipt.setId(this.packetIdGenerator.getNextShortSequence());
receipt.setCorrelationId(info.getId());
receipt.setResult(rc);
send(receipt);
}
else if (info.getType() == XATransactionInfo.ROLLBACK) {
this.brokerConnector.rollbackTransaction(this, info.getXid());
}