tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgallim...@apache.org
Subject tomee git commit: TOMEE-1900 mark connection as closed
Date Sun, 14 Aug 2016 21:45:46 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x e0bd36479 -> 1a633869b


TOMEE-1900 mark connection as closed


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/1a633869
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/1a633869
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/1a633869

Branch: refs/heads/tomee-1.7.x
Commit: 1a633869ba285d530a69cb34da859059c5ac2008
Parents: e0bd364
Author: Jonathan Gallimore <jon@jrg.me.uk>
Authored: Sun Aug 14 22:45:09 2016 +0100
Committer: Jonathan Gallimore <jon@jrg.me.uk>
Committed: Sun Aug 14 22:45:09 2016 +0100

----------------------------------------------------------------------
 .../openejb/resource/jdbc/managed/local/ManagedConnection.java      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/1a633869/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/managed/local/ManagedConnection.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/managed/local/ManagedConnection.java
b/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/managed/local/ManagedConnection.java
index 452ea76..d58f3d4 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/managed/local/ManagedConnection.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/managed/local/ManagedConnection.java
@@ -98,6 +98,7 @@ public class ManagedConnection implements InvocationHandler {
             if (transaction == null) {
                 if ("close".equals(mtdName)) {
                     if (delegate == null) { // no need to get a connection
+                        closed = true;
                         return null;
                     }
 


Mime
View raw message