geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r801849 - /geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/TransactionCachingInterceptor.java
Date Fri, 07 Aug 2009 00:04:01 GMT
Author: djencks
Date: Fri Aug  7 00:04:01 2009
New Revision: 801849

URL: http://svn.apache.org/viewvc?rev=801849&view=rev
Log:
GERONIMO-4786 make sure all existing connections get enrolled in a new transaction

Modified:
    geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/TransactionCachingInterceptor.java

Modified: geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/TransactionCachingInterceptor.java
URL: http://svn.apache.org/viewvc/geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/TransactionCachingInterceptor.java?rev=801849&r1=801848&r2=801849&view=diff
==============================================================================
--- geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/TransactionCachingInterceptor.java
(original)
+++ geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/TransactionCachingInterceptor.java
Fri Aug  7 00:04:01 2009
@@ -80,6 +80,8 @@
                     ManagedConnectionInfo previousMci = connectionInfo.getManagedConnectionInfo();
                     if (previousMci != null && previousMci != managedConnectionInfo
&& previousMci.getManagedConnection() != null) {
                         //This might occur if more than one connection were obtained before
a UserTransaction were started.
+                        //enlists connection
+                        next.getConnection(connectionInfo);
                         managedConnectionInfos.addUnshared(previousMci);
                     } else {
                         connectionInfo.setManagedConnectionInfo(managedConnectionInfo);



Mime
View raw message