Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id A556E9E8852 for ; Wed, 9 May 2012 16:11:36 -0300 (ADT) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SSCIP-0000VS-JK for pgsql-jdbc@postgresql.org; Wed, 09 May 2012 19:11:35 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SSCIB-0001BT-E3 for pgsql-jdbc@postgresql.org; Wed, 09 May 2012 12:11:19 -0700 Date: Wed, 9 May 2012 12:11:19 -0700 (PDT) From: mephysto To: pgsql-jdbc@postgresql.org Message-ID: <1336590679429-5698263.post@n5.nabble.com> In-Reply-To: References: <1336576000350-5697657.post@n5.nabble.com> Subject: Re: Fwd: Postgres JDBC, WS and commit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.9 (/) X-Archive-Number: 201205/19 X-Sequence-Number: 22919 Hi Kevin, I will try to explain my scenario: with my application, many users exchange message within them. User1 send message to user2 by a web service. This web service send message and wait the response from user 2 before end and send notice to user1. I can't know how many time is needed for response, so, I would to save te state in a table on database to prevent accidental disconnection of client from web service. But I found that, if transaction are not closed until web service operation end, my table are not update, and I can't know the wait state of user1 and I can't take back he to his request. Moreover, if transaction lock my table, and other user, user3, send a message to user4, I can't save his state until user1 operation end. Is it clear enough? Is there any wrong in my reasoning? Is there anything I ignore in pool functionality? Thanks in advance. Mephysto -- View this message in context: http://postgresql.1045698.n5.nabble.com/Postgres-JDBC-WS-and-commit-tp5697657p5698263.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.