tx.addCallback(deliveryCallback, this);
}
for(Iterator i = acks.iterator(); i.hasNext(); )
{
Ack ack = (Ack)i.next();
Long id = new Long(ack.getDeliveryID());
//TODO - do this more elegantly
if (ack instanceof DeliveryInfo)
{
if (!((DeliveryInfo)ack).isShouldAck())