Fix bug https://issues.apache.org/bugzilla/show_bug.cgi?id=48817
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 2 May 2011 17:16:45 +0000 (17:16 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 2 May 2011 17:16:45 +0000 (17:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1098667 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java

index 0faccfe..8177991 100644 (file)
@@ -440,7 +440,9 @@ public class ConnectionPool {
                 if (log.isDebugEnabled()) {
                     log.debug("Creating interceptor instance of class:"+proxies[i].getInterceptorClass());
                 }
-                proxies[i].getInterceptorClass().newInstance().poolStarted(this);
+                JdbcInterceptor interceptor = proxies[i].getInterceptorClass().newInstance();
+                interceptor.setProperties(proxies[i].getProperties());
+                interceptor.poolStarted(this);
             }catch (Exception x) {
                 log.error("Unable to inform interceptor of pool start.",x);
                 if (jmxPool!=null) jmxPool.notify(org.apache.tomcat.jdbc.pool.jmx.ConnectionPool.NOTIFY_INIT, getStackTrace(x));