*
* @return a <code>Connection</code> value
* @exception SQLException if an error occurs
*/
protected Connection newConnection_() throws SQLException {
ConnectionPoolDataSource ds = J2EEDataSource.getConnectionPoolDataSource();
for (Iterator it = dsProps.entrySet().iterator(); it.hasNext(); ) {
Map.Entry e = (Map.Entry) it.next();
J2EEDataSource.setBeanProperty(
ds, (String) e.getKey(), e.getValue());
}
PooledConnection pc =
ds.getPooledConnection();
return pc.getConnection();
}