tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r757381 - /tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
Date Mon, 23 Mar 2009 12:07:38 GMT
Author: fhanik
Date: Mon Mar 23 12:07:36 2009
New Revision: 757381

URL: http://svn.apache.org/viewvc?rev=757381&view=rev
Log:
expose the poolname through a public method, this will allow one to retrieve the actual connection
pool through JMX as well

Modified:
    tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java

Modified: tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java?rev=757381&r1=757380&r2=757381&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java (original)
+++ tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java Mon
Mar 23 12:07:36 2009
@@ -44,10 +44,6 @@
     
     protected volatile ConnectionPool pool = null;
     
-    public ConnectionPool getPool() {
-        return pool;
-    }
-
     protected PoolProperties poolProperties = new PoolProperties();
 
     public DataSourceProxy() {
@@ -125,6 +121,14 @@
                                                 String password) throws SQLException {
         return (PooledConnection) getConnection();
     }
+    
+    public ConnectionPool getPool() {
+        return pool;
+    }
+
+    public String getPoolName() {
+        return pool.getName();
+    }
 
     /**
      * {@inheritDoc}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message