geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: rev 54692 - geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context
Date Tue, 12 Oct 2004 19:51:54 GMT
Author: djencks
Date: Tue Oct 12 12:51:54 2004
New Revision: 54692

Modified:
   geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
Log:
when beginning/ending an imported xid/transaction, associate TransactionContext with thread

Modified: geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
==============================================================================
--- geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
(original)
+++ geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
Tue Oct 12 12:51:54 2004
@@ -259,9 +259,11 @@
             containerTransactionContext.resume();
         }
         importer.setTransactionTimeout(txTimeoutMillis);
+        TransactionContext.setContext(containerTransactionContext);
     }
 
     public void end(Xid xid) throws XAException, SystemException {
+        TransactionContext.setContext(null);
         synchronized (importedTransactions) {
             ContainerTransactionContext containerTransactionContext = (ContainerTransactionContext)
importedTransactions.get(xid);
             if (containerTransactionContext == null) {

Mime
View raw message