Enumeration targets;
String target;
MessageAcks acks;
XACnxRollback rollbackRequest;
targets = xaC.deliveries.keys();
rollbackRequest = new XACnxRollback(xid.getBranchQualifier(),
xid.getFormatId(),
xid.getGlobalTransactionId());
while (targets.hasMoreElements()) {
target = (String) targets.nextElement();
acks = (MessageAcks) xaC.deliveries.remove(target);
rollbackRequest.add(target, acks.getIds(), acks.getQueueMode());
}
// Sending to the proxy:
cnx.syncRequest(rollbackRequest);