Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id AB2EC9F939E for ; Thu, 21 Dec 2006 13:05:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 74199-10 for ; Thu, 21 Dec 2006 13:04:43 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 249B59F939C for ; Thu, 21 Dec 2006 13:04:48 -0400 (AST) Received: (qmail invoked by alias); 21 Dec 2006 17:04:47 -0000 Received: from xdsl-81-173-231-40.netcologne.de (EHLO [192.168.3.10]) [81.173.231.40] by mail.gmx.net (mp046) with SMTP; 21 Dec 2006 18:04:47 +0100 X-Authenticated: #2870507 Message-ID: <458ABEA8.8030603@gmx.net> Date: Thu, 21 Dec 2006 18:04:40 +0100 From: Roland Walter User-Agent: Thunderbird 1.5.0.8 (X11/20060911) MIME-Version: 1.0 To: Dave Cramer CC: =?ISO-8859-1?Q?H=E5kan_Jacobsson?= , pgsql-jdbc@postgresql.org Subject: Re: Exception-handling References: <20061221100121.EJOZ10325.mxfep02.bredband.com@mxfep02> <021E5266-98FD-4ECD-8CFD-FBEFE0CAA761@fastcrypt.com> In-Reply-To: <021E5266-98FD-4ECD-8CFD-FBEFE0CAA761@fastcrypt.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/112 X-Sequence-Number: 16344 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave Cramer wrote: > The only general rule I adhere to is to make sure you clean up your > connections in a finally clause > > Dave Depends of your application. I usually free up all resources in the finally clause, that I do not need any more. The resources are ResultSets and Statements and may be connections. Not closing the Statments and using the same connection further prooved to be fatal. Regards, Roland. - -- Dipl.-Phys. Roland Walter mailto: roland (dot) walter (dot) rwa (at) gmx (dot) net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFFir6oxoOEAkary1ERAh1gAJ0XCLT7ildof8QbH/x6y+xrPy4xvACeLBwk vv9oqUJtZGFW/pYCtfLKDUk= =NoBO -----END PGP SIGNATURE-----