on 4/10/01 6:46 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> +
>      /**
> +     * Close any database connection that is currently open.
> +     */
> +    protected void close() {
> +
> +        // Do nothing if the database connection is already closed
> +        if (dbConnection == null)
> +            return;
> +
> +        // Close our prepared statements (if any)
> +        try {
> +            preparedCredentials.close();
> +        } catch (Throwable f) {
> +            ;
> +        }
> +        try {
> +            preparedRoles.close();
> +        } catch (Throwable f) {
> +            ;
> +        }
> +
> +        // Close this database connection, and log any errors
> +        try {
> +            dbConnection.close();
> +        } catch (SQLException e) {
> +            log(sm.getString("jdbcRealm.close"), e); // Just log it here
> +        }
> +
> +        // Release resources associated with the closed connection
> +        dbConnection = null;
> +        preparedCredentials = null;
> +        preparedRoles = null;
> +
> +    }

Craig, does this mean you (finally) aren't using tabs anymore? :-)

-jon

Reply via email to