commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luo, Frank" <Frank....@sabre.com>
Subject [dbcp] why Jdbc2PoolDataSource.getConnection() don't return DelegatingConnection?
Date Thu, 08 May 2003 23:42:29 GMT
Can someone tell me why  Jdbc2PoolDataSource.getConnection() returning a cpdsAdapter.ConnectionImpl,
instead of DelegatingConnection in a non-jndi environment?

To me, it is problematic to have a fact that conn1 is not the same as conn2 in the following
code:

{
//conn1 is a cpdsAdapter.ConnectionImpl
Connection conn1 = Jdbc2PoolDataSource.getConnection(); 

Statement stmt = conn1.createStatement();

//conn2 is actually an Oracle connection
Connection conn2 = stmt.getConnection();
}

Thanks.


Mime
View raw message