log.debug("Journalled in flight acknowledge: "+messageIdentity.getMessageID()+" at "+location);
synchronized (this) {
inFlightTxLocations.add(location);
}
final Transaction tx = TransactionManager.getContexTransaction();
JournalAck ack = new JournalAck(destinationName,subscription,messageIdentity.getMessageID(), tx.getTransactionId());
transactionStore.acknowledge(this, ack, location);
tx.addPostCommitTask(new TransactionTask(){
public void execute() throws Throwable {
if( debug )
log.debug("In flight acknowledge commit: "+messageIdentity.getMessageID()+" at "+location);
synchronized (JournalTopicMessageStore.this) {
inFlightTxLocations.remove(location);
acknowledge(subscription, messageIdentity, location);
}
}
});
tx.addPostRollbackTask(new TransactionTask(){
public void execute() throws Throwable {
if( debug )
log.debug("In flight acknowledge rollback: "+messageIdentity.getMessageID()+" at "+location);
// TODO Auto-generated method stub
synchronized (JournalTopicMessageStore.this) {