Exemplo n.º 1
0
 protected final LocalTransaction removeLocalTransactionInternal(Transaction tx) {
   LocalTransaction localTx = localTransactions.get(tx);
   if (localTx != null) {
     globalToLocalTransactions.remove(localTx.getGlobalTransaction());
     localTransactions.remove(tx);
     releaseResources(localTx);
   }
   return localTx;
 }
Exemplo n.º 2
0
 public final RemoteTransaction removeRemoteTransaction(GlobalTransaction txId) {
   RemoteTransaction removed = remoteTransactions.remove(txId);
   if (trace) log.tracef("Removed remote transaction %s ? %s", txId, removed);
   releaseResources(removed);
   return removed;
 }