Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [JDBC] Getting "This ResultSet is closed" exceptions

From: Jan de Visser <jdevisser(at)digitalfairway.com>
Date: Mon Feb 18 2008 - 20:17:58 EST


On Monday 18 February 2008 18:07:59 Paul Tomblin wrote:
>  I've turned off autocommit, and am
> running around the code trying to figure out where is the best place
> to put "conn.commit();" calls.

Come again? You are using a single connection and are calling commit and seemingly random spots? That means that thread A will call commit while thread B is in the middle of doing things.

You are applying liberal amounts of lipstick on an animal that to everybody looks conspicuously like a porcine. Do yourself a favour. Introduce a connection pool before you (or worse, your customers) go insane.

jan

-- 
--------------------------------------------------------------
Jan de Visser                     jdevisser@digitalfairway.com

                Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               
http://archives.postgresql.org
Received on Mon Feb 18 20:22:07 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:44:47 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library