TransactionManager.getContexTransaction().addPostCommitTask(new TransactionTask(){
public void execute() throws Throwable {
// now lets tell each container to update its lastAcknowlegedMessageID
for (Iterator iter = lastMessagePointersPerContainer.entrySet().iterator(); iter.hasNext();) {
Map.Entry entry = (Map.Entry) iter.next();
TopicMessageContainer container = (TopicMessageContainer) entry.getKey();
MessagePointer pointer = (MessagePointer) entry.getValue();
container.setLastAcknowledgedMessageID(DurableTopicSubscription.this, pointer.getMessageIdentity());
}
}
});
if (pointer.getMessageIdentity().equals(ack.getMessageIdentity())) {