expose the poolname through a public method, this will allow one to retrieve the...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 23 Mar 2009 12:07:36 +0000 (12:07 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 23 Mar 2009 12:07:36 +0000 (12:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@757381 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java

index 12c7b7c..77a20a3 100644 (file)
@@ -44,10 +44,6 @@ public class DataSourceProxy  {
     
     protected volatile ConnectionPool pool = null;
     
-    public ConnectionPool getPool() {
-        return pool;
-    }
-
     protected PoolProperties poolProperties = new PoolProperties();
 
     public DataSourceProxy() {
@@ -125,6 +121,14 @@ public class DataSourceProxy  {
                                                 String password) throws SQLException {
         return (PooledConnection) getConnection();
     }
+    
+    public ConnectionPool getPool() {
+        return pool;
+    }
+
+    public String getPoolName() {
+        return pool.getName();
+    }
 
     /**
      * {@inheritDoc}