pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan de Visser <jdevisser@digitalfairway.com>
To: pgsql-jdbc@postgresql.org
Cc: Paul Tomblin <ptomblin@gmail.com>
Subject: Re: Getting "This ResultSet is closed" exceptions
Date: Mon, 18 Feb 2008 20:17:58 -0500
Message-ID: <200802182017.58477.jdevisser@digitalfairway.com> (raw)
In-Reply-To: <8efd35820802181507i3dace145t9b67bda4f07cd0fa@mail.gmail.com>
References: <8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com>
	<200802181708.07111.jdevisser@digitalfairway.com>
	<8efd35820802181507i3dace145t9b67bda4f07cd0fa@mail.gmail.com>

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



view thread (10+ messages)  latest in thread

Message-ID: <200802182017.58477.jdevisser@digitalfairway.com>
Permalink:  ../200802182017.58477.jdevisser@digitalfairway.com/
Also on:    postgresql.org/message-id/200802182017.58477.jdevisser@digitalfairway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jdevisser@digitalfairway.com, ptomblin@gmail.com
  Subject: Re: Getting "This ResultSet is closed" exceptions
  In-Reply-To: <200802182017.58477.jdevisser@digitalfairway.com>
  References: <8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com> <200802181708.07111.jdevisser@digitalfairway.com> <8efd35820802181507i3dace145t9b67bda4f07cd0fa@mail.gmail.com> <200802182017.58477.jdevisser@digitalfairway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox