You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Nick Bauman <ni...@cortexity.com> on 2001/04/11 03:49:57 UTC

Re: cvs commit:

Yeah, I don't see what the big wup is about formatting. We run a beautifier 
against all commits to CVS. Works great and no more "format" wars.

> on 4/10/01 6:46 PM, "craigmcc@apache.org" <cr...@apache.org> 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? :-)
> Craig, does this mean you (finally) aren't using tabs anymore? :-)
> -jon


-- 
Nick Bauman
Software Developer
3023 Lynn #22
Minneapolis, MN
55416
Mobile Phone: (612) 810-7406