List<TransactionWorkMessageAck> consumedMsgs = work
.getMessageAcknowledgments();
Iterator<TransactionWorkMessageAck> consumedIter = consumedMsgs
.iterator();
while (consumedIter.hasNext()) {
TransactionWorkMessageAck msgAck = consumedIter.next();
if (DEBUG) {
logger.log(Logger.DEBUG, getPrefix() + " convert consumed msg "+msgAck);
}
DestinationUID duid = msgAck.getDestUID();
int type = (duid.isQueue() ? DestType.DEST_TYPE_QUEUE
: DestType.DEST_TYPE_TOPIC);
Destination dest = Destination.getDestination(duid.getName(),
type, true, true);
dest.load();
SysMessageID mid = msgAck.getSysMessageID();
ConsumerUID cid = msgAck.getConsumerID();
boolean sync = true;
boolean isLastAck = false;
TransactionAcknowledgement txAck = new TransactionAcknowledgement(mid, cid, cid);
fileStore.storeTransactionAck(txid, txAck, false);
// fileStore.updateInterestState(duid, mid, cid, Store.INTEREST_STATE_ACKNOWLEDGED,