Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B798D64FCCD for ; Wed, 16 Jul 2008 05:38:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54776-05 for ; Wed, 16 Jul 2008 05:37:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs44.luxsci.com (rs44.luxsci.com [64.49.254.134]) by postgresql.org (Postfix) with ESMTP id C40F764FCD7 for ; Wed, 16 Jul 2008 05:37:57 -0300 (ADT) Received: from rs48.luxsci.com (rs48.luxsci.com [65.61.166.92]) by rs44.luxsci.com (8.13.1/8.13.7) with ESMTP id m6G8bj9R011308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 16 Jul 2008 03:37:45 -0500 Received: from rs48.luxsci.com (localhost [127.0.0.1]) by rs48.luxsci.com (8.13.1/8.13.7) with ESMTP id m6G8bjoZ029206; Wed, 16 Jul 2008 03:37:45 -0500 Received: (from root@localhost) by rs48.luxsci.com (8.13.1/8.13.7/Submit) id m6G8b2nj028058; Wed, 16 Jul 2008 08:37:02 GMT Received: (from pchaubey@vertex.co.in) by Lux Scientiae SMTP Processor; Wed, 16 Jul 2008 08:37:02 +0000 Received: from [192.168.3.6] (121.241.234.2.static-pune.vsnl.net.in [121.241.234.2] (may be forged)) (user=pchaubey@vertex.co.in mech=PLAIN bits=2) by rs48.luxsci.com (8.13.1/8.13.7) with ESMTP id m6G8aXDf027011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 16 Jul 2008 03:36:35 -0500 Message-ID: <487DB300.9060903@vertex.co.in> Date: Wed, 16 Jul 2008 14:06:16 +0530 From: Pushker Chaubey User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) MIME-Version: 1.0 To: nalini CC: pgsql-jdbc@postgresql.org Subject: Re: Transaction handling through java References: <5b2b89135586bc69.487de7d7@nic.in> In-Reply-To: <5b2b89135586bc69.487de7d7@nic.in> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Comment: Lux Scientiae SMTP Processor Message ID - 1216197422-8507438.90497576 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/38 X-Sequence-Number: 18823 Hi, If you are using a connection pooling, then may be the pool manager is=20 closing the connection if connection has been idle for a long time (if=20 some code is there that takes long) after it has been opened. If the=20 connections remains open for long time, pool manager may consider of it=20 as abandoned and can take back in the pool. If you are using DBCP connection pooling, try changing=20 'removeAbandonedTimeout' parameter to a bigger value. regards, Pushker nalini wrote: > I am facing the following problem. > > Our application sends a block of queries to postgres in a begin end bloc= k. If one of the queries take a long time to finish the whole transaction i= s assumed to be committed by the application even though the query is still= running . This results in failure of all subsequent transactions. > > Although the application is programmed to catch all exceptions , it someh= ow is not able to figure out that the transaction is still not complete. > > I am using postgres 8.3 > > with regards > > Nalini > >=20=20=20 =0D The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and ma= y contain proprietary, confidential or privileged information. If you are n= ot the intended recipient, you should not disseminate, distribute or copy t= his e-mail. Please notify the sender immediately and destroy the original m= essage all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient shoul= d check this email and any attachments for the presence of viruses. The com= pany accepts no liability for any damage caused by any virus transmitted by= this email. Please do not print this email unless it is absolutely necessary.