commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r667928 - in /commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp: DBCPSoak.java DBCPTest.java
Date Sun, 15 Jun 2008 06:07:48 GMT
Author: psteitz
Date: Sat Jun 14 23:07:48 2008
New Revision: 667928

URL: http://svn.apache.org/viewvc?rev=667928&view=rev
Log:
Close the connection pool on test termination.

Modified:
    commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPSoak.java
    commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPTest.java

Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPSoak.java
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPSoak.java?rev=667928&r1=667927&r2=667928&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPSoak.java
(original)
+++ commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPSoak.java
Sat Jun 14 23:07:48 2008
@@ -361,4 +361,8 @@
         
         this.configFile = "config-dbcp.xml";
     }
+
+    public GenericObjectPool getConnectionPool() {
+        return connectionPool;
+    }
 }

Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPTest.java?rev=667928&r1=667927&r2=667928&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPTest.java
(original)
+++ commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPTest.java
Sat Jun 14 23:07:48 2008
@@ -25,6 +25,7 @@
     public static void main(String[] args) {
         try {
             soaker.execute();
+            soaker.getConnectionPool().close();
         } catch (Exception ex) {
             ex.printStackTrace();
         }



Mime
View raw message