pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Pushker Chaubey <pchaubey@vertex.co.in>
To: nalini <nalini@nic.in>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Transaction handling through java
Date: Wed, 16 Jul 2008 14:06:16 +0530
Message-ID: <487DB300.9060903@vertex.co.in> (raw)
In-Reply-To: <5b2b89135586bc69.487de7d7@nic.in>
References: <5b2b89135586bc69.487de7d7@nic.in>
Hi,
If you are using a connection pooling, then may be the pool manager is
closing the connection if connection has been idle for a long time (if
some code is there that takes long) after it has been opened. If the
connections remains open for long time, pool manager may consider of it
as abandoned and can take back in the pool.
If you are using DBCP connection pooling, try changing
'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 block. If one of the queries take a long time to finish the whole transaction is 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 somehow is not able to figure out that the transaction is still not complete.
>
> I am using postgres 8.3
>
> with regards
>
> Nalini
>
>
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy the original message all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company 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.
view thread (4+ messages)
Message-ID: <487DB300.9060903@vertex.co.in> Permalink: ../487DB300.9060903@vertex.co.in/ Also on: postgresql.org/message-id/487DB300.9060903@vertex.co.in ·
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: pchaubey@vertex.co.in, nalini@nic.in Subject: Re: Transaction handling through java In-Reply-To: <487DB300.9060903@vertex.co.in> References: <5b2b89135586bc69.487de7d7@nic.in> <487DB300.9060903@vertex.co.in> * 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