> Double check this, but for me, conn.isClosed() throws a SQLException, 
> and the connection gets put back into the pool, i.e., it doesn't get
> to return false;

Sorry ... a bit larger view:

    synchronized public boolean validateObject(Object obj) {
        if(obj instanceof Connection) {
            String query = _validationQuery;
            Connection conn = (Connection)obj;
            try {
                if(conn.isClosed()) {
                    return false;
                }
            } catch(SQLException e) {
                return false;
            }
            if(null != query) {
            ...
            }
        ...
        }
     ...
     }

OK?  :-)

        --- Noel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to