geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r585309 - /geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
Date Wed, 17 Oct 2007 00:54:25 GMT
Author: dain
Date: Tue Oct 16 17:54:22 2007
New Revision: 585309

URL: http://svn.apache.org/viewvc?rev=585309&view=rev
Log:
clear proxy reference after returning to caller so the proxy can be garbage collected

Modified:
    geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java

Modified: geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
URL: http://svn.apache.org/viewvc/geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java?rev=585309&r1=585308&r2=585309&view=diff
==============================================================================
--- geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
(original)
+++ geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
Tue Oct 16 17:54:22 2007
@@ -88,6 +88,10 @@
         Object connection = ci.getConnectionProxy();
         if (connection == null) {
             connection = ci.getConnectionHandle();
+        } else {
+            // connection proxy is used only once so we can be notified
+            // by the garbage collector when a connection is abandoned 
+            ci.setConnectionProxy(null);
         }
         return connection;
     }



Mime
View raw message