X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8A4F9329C63 for ; Tue, 21 Sep 2004 02:22:15 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86119-10 for ; Tue, 21 Sep 2004 01:21:54 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by svr1.postgresql.org (Postfix) with ESMTP id 0F574329E72 for ; Tue, 21 Sep 2004 02:21:55 +0100 (BST) Received: from [192.168.1.52] (dtenny.ne.client2.attbi.com[24.60.112.224]) by comcast.net (sccrmhc12) with ESMTP id <2004092101215501200d01fhe>; Tue, 21 Sep 2004 01:21:55 +0000 Message-ID: <414F822D.3020403@comcast.net> Date: Mon, 20 Sep 2004 21:21:49 -0400 From: Jeffrey Tenny User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: "Idle in Transaction" revisited. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/133 X-Sequence-Number: 11023 > Trouble is, with JDBC as its currently implemented, the instant you > Commit() or Rollback(), JDBC starts a new transaction automatically, > since JDBC has no explicit Begin(). If that thread then goes > quiescent for an arbitrary period of time (perhaps waiting for more > messaging traffic, our apps are message driven factory floor > middleware things), this transaction remains open. Our > applications are characterized by bursts of frenetic activity > followed by long idle periods, quite unpredictably. I was under the impression that this was easily addressed by delaying the onset of the next transaction after commit/rollback until some actual statement activity began. (like a SELECT...)