DeliveryRecord del = (DeliveryRecord)deliveries.remove(deliveryId);
if (del == null)
{
throw new TransactionException("transaction rolled back because deliveries has been cancelled by the session.");
}
if (del != null && del.replicating)
{
//TODO - we could batch this in one message
try
{
postOffice.sendReplicateAckMessage(del.queueName, del.del.getReference().getMessage().getMessageID());
}
catch (Exception e)
{
throw new TransactionException("Failed to handle send ack", e);
}
}
if (isCC && del != null)
{