com.p6spy.engine.spy

Class P6ConnectionPoolDataSource

public class P6ConnectionPoolDataSource extends P6DataSource implements ConnectionPoolDataSource

Support for PooledConnection interface requires an aware DataSource to produce the PooledConnection ojects. This is it. $Author: aarvesen $ $Log: P6ConnectionPoolDataSource.java,v $ Revision 1.5 2003/08/07 19:06:38 aarvesen removed the synchro's changed the imports slightly call up to the new constructor Revision 1.4 2003/08/04 19:33:13 aarvesen removed the flawed implementation of trying to wrap a normal p6 connection in a pooled connection Revision 1.3 2003/06/03 19:20:25 cheechq removed unused imports Revision 1.2 2003/01/30 23:38:49 dlukeparker Added cvs keywords Revision 1.1 2003/01/30 23:35:22 dlukeparker Added support for the javax.sql operations for pooled connections. This is required for support of WebSphere. Finished implementation of com/p6spy/engine/spy/P6DataSource.java Added com/p6spy/engine/spy/P6ConnectionPoolDataSource.java Added com/p6spy/engine/spy/P6DataSourceFactory.java Added com/p6spy/engine/spy/P6PooledConnection.java Added com/p6spy/engine/spy/P6ProxyConnection.java Made changes in spy.properties and com/p6spy/engine/common/P6SpyOptions.java to enable datasource name, driver and properties setting. Also added support for specifying the JNDI context for finding the real datasource.
Constructor Summary
P6ConnectionPoolDataSource()
P6ConnectionPoolDataSource(DataSource ds)
Method Summary
PooledConnectiongetPooledConnection()
PooledConnectiongetPooledConnection(String s, String s1)

Constructor Detail

P6ConnectionPoolDataSource

public P6ConnectionPoolDataSource()

P6ConnectionPoolDataSource

public P6ConnectionPoolDataSource(DataSource ds)

Method Detail

getPooledConnection

public PooledConnection getPooledConnection()

getPooledConnection

public PooledConnection getPooledConnection(String s, String s1)