Re: Exception-handling

From: Roland Walter <roland(dot)walter(dot)rwa(at)gmx(dot)net>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: Håkan Jacobsson <hakan(dot)jacobsson99(at)bredband(dot)net>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Exception-handling
Date: 2006-12-21 17:04:40
Message-ID: 458ABEA8.8030603@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

-----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-----

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2006-12-21 17:06:57 Re: Exception-handling
Previous Message Dave Cramer 2006-12-21 14:54:35 Re: Exception-handling