synchronized (this) {
inFlightTxLocations.add(location);
}
final Transaction tx = TransactionManager.getContexTransaction();
transactionStore.addMessage(this, message, location);
tx.addPostCommitTask(new TransactionTask() {
public void execute() throws Throwable {
if( debug )
log.debug("In flight message add commit: "+message.getJMSMessageID()+" at "+location);
synchronized (JournalMessageStore.this) {
inFlightTxLocations.remove(location);
addMessage(message, location);
}
}
});
tx.addPostRollbackTask(new TransactionTask(){
public void execute() throws Throwable {
if( debug )
log.debug("In flight message add rollback: "+message.getJMSMessageID()+" at "+location);
// TODO Auto-generated method stub
synchronized (JournalMessageStore.this) {