From 8abf57d913548526a24da7e321de62b45d03ba54 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Tue, 30 Mar 2010 16:33:16 +0000 Subject: [PATCH] OPENJPA-1294: New connection is not reference counted git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@929184 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java index c77f549ac..afa37abcc 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java @@ -975,7 +975,7 @@ public class JDBCStoreManager public Connection getNewConnection() { try { - return connectInternal(); + return _ds.getConnection(); } catch (SQLException e) { throw SQLExceptions.getStore(e, _dict); }