Menu

#6 PoolManConnectionHandle isClosed

open
nobody
None
5
2001-06-27
2001-06-27
Paul Webber
No

If you have a PoolManConnectionHandle and ask it
isClosed() the PoolManConnectionHandle only checks for
the existence of the variable PoolManConnection pcon.
This does not necessarily mean the connection is open.

A better check would be:
public boolean isClosed() throws SQLException
{
if (pcon != null && !pcon.isClosed())
{
return false;
}
return true;
}

Discussion


Log in to post a comment.