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:28:49 GMT
Serge commented:
> Noel J. Bergman wrote:
> >                        connectionPool.setTestOnBorrow(true);
> >                        connectionPool.setTestOnReturn(true);
> >                        // connectionPool.setTestWhileIdle(true);

> These set in what conditions the *one* verification SQL statement will
> be run.

If there is no verification statement,
PoolableConnectionFactory.validateObject(Object) still does:

            try {
                if(conn.isClosed()) {
                    return false;
                }
            ...

which is what we wanted in the first place.  :-)

> I had a DBCP developer brag about how there were **8 configuration
> options** on when you could run the one verification SQL statement.

No comment.

	--- 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