From: mephysto <mephystoonhell@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Fwd: Postgres JDBC, WS and commit
Date: Wed, 9 May 2012 12:11:19 -0700 (PDT)
Message-ID: <1336590679429-5698263.post@n5.nabble.com> (raw)
In-Reply-To: <CAC92xsrzAeLRHngP2et3j=bmAAw9M257tdzKr1KN9tfpVm=sGw@mail.gmail.com>
References: <1336576000350-5697657.post@n5.nabble.com>
<CAC92xsrzAeLRHngP2et3j=bmAAw9M257tdzKr1KN9tfpVm=sGw@mail.gmail.com>
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.
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: mephystoonhell@gmail.com
Subject: Re: Fwd: Postgres JDBC, WS and commit
In-Reply-To: <1336590679429-5698263.post@n5.nabble.com>
References: <1336576000350-5697657.post@n5.nabble.com> <CAC92xsrzAeLRHngP2et3j=bmAAw9M257tdzKr1KN9tfpVm=sGw@mail.gmail.com> <1336590679429-5698263.post@n5.nabble.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