<!-- See "build.properties.sample" in the top level directory for all -->
<property name="version.major" value="1" />
<property name="version.minor" value="0" />
- <property name="version.build" value="9" />
+ <property name="version.build" value="10" />
<property name="version.patch" value="-beta" />
<property name="version" value="${version.major}.${version.minor}.${version.build}${version.patch}" />
<!-- property values you must customize for successful building!!! -->
PoolProperties.InterceptorDefinition[] proxies = getPoolProperties().getJdbcInterceptorsAsArray();
for (int i=0; i<proxies.length; i++) {
try {
+ if (log.isDebugEnabled()) {
+ log.debug("Creating interceptor instance of class:"+proxies[i].getInterceptorClass());
+ }
proxies[i].getInterceptorClass().newInstance().poolStarted(this);
}catch (Exception x) {
log.error("Unable to inform interceptor of pool start.",x);
try {
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
ObjectName name = new ObjectName(POOL_JMX_TYPE_PREFIX+"ConnectionPool,name="+getName());
- jmxPool = new org.apache.tomcat.jdbc.pool.jmx.ConnectionPool(this);
+ if ("1.5".equals(System.getProperty("java.specification.version"))) {
+ jmxPool = new org.apache.tomcat.jdbc.pool.jmx.ConnectionPool(this);
+ } else {
+ jmxPool = new org.apache.tomcat.jdbc.pool.jmx.ConnectionPool(this,true);
+ }
mbs.registerMBean(jmxPool, name);
} catch (Exception x) {
log.warn("Unable to start JMX integration for connection pool. Instance["+getName()+"] can't be monitored.",x);
import java.util.Properties;
import java.util.concurrent.atomic.AtomicInteger;
+import org.apache.juli.logging.Log;
+import org.apache.juli.logging.LogFactory;
+
/**
* @author Filip Hanik
*
*/
public class PoolProperties {
public static final String PKG_PREFIX = "org.apache.tomcat.jdbc.pool.interceptor.";
+ protected static Log log = LogFactory.getLog(PoolProperties.class);
protected static AtomicInteger poolCounter = new AtomicInteger(0);
protected Properties dbProperties = new Properties();
public Class<? extends JdbcInterceptor> 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());
}
}
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;
}
-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