BasicDatasource hangs for the full TCP timeout when testing a
PoolableConnectionFactory:

    private static void
validateConnectionFactory(PoolableConnectionFactory connectionFactory)
throws Exception {

        Connection conn = null;

        try {

            conn = (Connection) connectionFactory.makeObject();

            connectionFactory.activateObject(conn);

            connectionFactory.validateConnection(conn);

            connectionFactory.passivateObject(conn);

        }

        finally {

            connectionFactory.destroyObject(conn);

        }

    }


Is there one there a datasource which implements the login timeout
available, or can anyone give a brief description of how to accomplish
it?


-Dave

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

Reply via email to