com.p6spy.engine.spy

Class P6ConnectionPoolDataSource

Implemented Interfaces:
ConnectionPoolDataSource, DataSource, Referenceable, Serializable

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.

Field Summary

Fields inherited from class com.p6spy.engine.spy.P6DataSource

rds, rdsName

Fields inherited from class com.p6spy.engine.spy.P6Base

factory

Constructor Summary

P6ConnectionPoolDataSource()
Default no-arg constructor for Serialization
P6ConnectionPoolDataSource(DataSource ds)

Method Summary

PooledConnection
getPooledConnection()
PooledConnection
getPooledConnection(String s, String s1)

Methods inherited from class com.p6spy.engine.spy.P6DataSource

bindDataSource, getConnection, getConnection, getLogWriter, getLoginTimeout, getRealDataSource, getReference, initMethod, setLogWriter, setLoginTimeout, setRealDataSource

Methods inherited from class com.p6spy.engine.spy.P6Base

getP6Factory, setP6Factory

Constructor Details

P6ConnectionPoolDataSource

public P6ConnectionPoolDataSource()
Default no-arg constructor for Serialization


P6ConnectionPoolDataSource

public P6ConnectionPoolDataSource(DataSource ds)

Method Details

getPooledConnection

public PooledConnection getPooledConnection()
            throws SQLException


getPooledConnection

public PooledConnection getPooledConnection(String s,
                                            String s1)
            throws SQLException