From: fhanik Date: Sat, 20 Dec 2008 00:45:46 +0000 (+0000) Subject: Removed calling to a JDK 1.6 method if its run under 1.5 and still take advantage... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=39ee7a2f46b8872ae2652a2e1624c1c372332180;p=tomcat7.0 Removed calling to a JDK 1.6 method if its run under 1.5 and still take advantage of the JMX features git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@728197 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/jdbc-pool/build.xml b/modules/jdbc-pool/build.xml index afb82e40f..0cf0bba13 100644 --- a/modules/jdbc-pool/build.xml +++ b/modules/jdbc-pool/build.xml @@ -23,7 +23,7 @@ - + diff --git a/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java b/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java index 09fbd39f1..afaebf64a 100644 --- a/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java +++ b/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java @@ -353,6 +353,9 @@ public class ConnectionPool { PoolProperties.InterceptorDefinition[] proxies = getPoolProperties().getJdbcInterceptorsAsArray(); for (int i=0; i getInterceptorClass() throws ClassNotFoundException { if (clazz==null) { if (getClassName().indexOf(".")<0) { + if (log.isDebugEnabled()) { + log.debug("Loading interceptor class:"+PoolProperties.PKG_PREFIX+getClassName()); + } clazz = Class.forName(PoolProperties.PKG_PREFIX+getClassName(), true, this.getClass().getClassLoader()); } else { + if (log.isDebugEnabled()) { + log.debug("Loading interceptor class:"+getClassName()); + } clazz = Class.forName(getClassName(), true, this.getClass().getClassLoader()); } } diff --git a/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.java b/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.java index 67cfeb300..c8b66ea9b 100644 --- a/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.java +++ b/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.java @@ -37,6 +37,11 @@ public class ConnectionPool extends NotificationBroadcasterSupport implements Co protected AtomicInteger sequence = new AtomicInteger(0); public ConnectionPool(org.apache.tomcat.jdbc.pool.ConnectionPool pool) { + super(); + this.pool = pool; + } + + public ConnectionPool(org.apache.tomcat.jdbc.pool.ConnectionPool pool, boolean for16) { super(getDefaultNotificationInfo()); this.pool = pool; } diff --git a/modules/jdbc-pool/sign.sh b/modules/jdbc-pool/sign.sh index 81e1728c5..da57c61ba 100755 --- a/modules/jdbc-pool/sign.sh +++ b/modules/jdbc-pool/sign.sh @@ -1,4 +1,4 @@ -VERSION=v1.0.9-beta +VERSION=v1.0.10-beta for i in $(find output/release/$VERSION -name "*.zip" -o -name "*.tar.gz"); do echo Signing $i echo $1|gpg --passphrase-fd 0 -a -b $i