Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 9ADFB9FA217 for ; Thu, 21 Dec 2006 13:07:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 59937-03 for ; Thu, 21 Dec 2006 13:06:57 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 6E4079F939C for ; Thu, 21 Dec 2006 13:06:57 -0400 (AST) Received: (qmail 16798 invoked from network); 21 Dec 2006 17:06:56 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 21 Dec 2006 17:06:56 -0000 In-Reply-To: <458ABEA8.8030603@gmx.net> References: <20061221100121.EJOZ10325.mxfep02.bredband.com@mxfep02> <021E5266-98FD-4ECD-8CFD-FBEFE0CAA761@fastcrypt.com> <458ABEA8.8030603@gmx.net> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: =?ISO-8859-1?Q?H=E5kan_Jacobsson?= , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Exception-handling Date: Thu, 21 Dec 2006 12:06:57 -0500 To: Roland Walter X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/113 X-Sequence-Number: 16345 On 21-Dec-06, at 12:04 PM, Roland Walter wrote: > -----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. My point was to make sure you do your cleanup, whatever it may be in a finally clause. This is the most frequent cause of leaking resources. Dave > > 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----- >