Hi,
I have a proposed correction for the class PoolingDataSource.java
change this method:
public synchronized Connection getConnection() throws SQLException {
return (Connection)(_pool.borrowObject());
}
to be like this:
public synchronized Connection getConnection() throws SQLException {
try {
return (Connection)(_pool.borrowObject());
} catch(NoSuchElementException nsee) {
throw new SQLException("No connection available in pool.");
}
}
This enables code to handle the exception thrown when there is an exhausted
pool in the same manor as if the connection is invalid.
Comments/Thoughts?
James
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>