james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: Mordred to DBCP
Date Mon, 21 Jul 2003 20:48:15 GMT
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message