>
> With new JDBC specs you can do stuff like:
>
> DataSource ds = context.lookup("jdbc/whatever");
>
> if (ds instanceof ConnectionPoolDataSource)
> {
> /* return a connection from the pool: */
> PooledConnection pc = ds.getPooledConnection();
> Connection conn = pc.getConnection();
> return conn;
> }
> else /* return a non-pooled connection */
> return ds.getConnection();
>
>
Applications should not use ConnectionPoolDataSource or
PooledConnection. These interfaces are used to define the interaction
between a pooling DataSource implementation and a jdbc2+ driver
implementation. A ConnectionPoolDataSource is a source of new db
connections for a connection pool.
john mcnally
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>