commit | 9a36c2fed9fc3a5a121359c9199abde4d7b4e36e | [log] [tgz] |
---|---|---|
author | Dain Sundstrom <dain@apache.org> | Wed Oct 17 00:54:22 2007 +0000 |
committer | Dain Sundstrom <dain@apache.org> | Wed Oct 17 00:54:22 2007 +0000 |
tree | 2bbbc44c806f361f7c539b547e84b2e8664fd398 | |
parent | eaf3137c12376acb5c3c9b57ca96f454f3c7f012 [diff] |
clear proxy reference after returning to caller so the proxy can be garbage collected git-svn-id: https://svn.apache.org/repos/asf/geronimo/components/txmanager/trunk@585309 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java b/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java index a1b7306..57f6f43 100644 --- a/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java +++ b/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
@@ -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; }