tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Connection Pooling questions
Date Wed, 01 Apr 2009 12:18:40 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 3/31/2009 10:57 PM, Caldarale, Charles R wrote:
>> From: allen.irwin@smartintegration.com.au
>> Subject: Connection Pooling questions
>>
>> I do close the connections within my program using conn.close();
> 
> The evidence suggests otherwise.  You also need to close result sets
> and statements associated with the connection, and all of the close()
> calls should be in a finally block to insure they always get
> executed.

Agreed. See http://blog.christopherschultz.net/?p=68 for examples.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknTW6AACgkQ9CaO5/Lv0PA6pwCfTDrXTqCfV94BTNKR6tDZl8Gf
uE8AnRBMm2Iraobvs4NNSnIPzUgcdiov
=xPNW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message