From: jose antonio leo <jaleo8@storelandia.com>
To: pgsql-sql@postgresql.org
Subject: prosgrees + java + trasnacciones
Date: Fri, 7 Feb 2003 14:49:00 +0100
Message-ID: <KAEFLIDKHEJNPPKOLGHMMEFJCNAA.jaleo8@storelandia.com> (raw)
In-Reply-To: <200302071336.40600.dev@archonet.com>
Hola a todos!
Intento hacer una aplicacion en java que va contra pgsql y me gustaria
bloquear registros.
Un jps llama a un metodo de una clase para modificar un registro. Lo primero
que hace es una consulta del registro (aquí quiero bloquear el registro) y
despues se muestra en el navegador el resultado, un usuario lo modifica,
pulsa el botón de actualizar y lo actualiza, desbloqueo.
He probado con select for update y lo hace bien, solo que si un usuario
quiere consultarlo para modificar tambien el mismo registro, se queda
esperando a que el otro acabe la actualización.
Hay alguna manera de detectar que ese registro se está consultando en select
for update para que no se quede esperando o hay alguna forma de hacerlo?
Gracias por todos y un saludo
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-sql@postgresql.org
Cc: jaleo8@storelandia.com
Subject: Re: prosgrees + java + trasnacciones
In-Reply-To: <KAEFLIDKHEJNPPKOLGHMMEFJCNAA.jaleo8@storelandia.com>
References: <200302071336.40600.dev@archonet.com> <KAEFLIDKHEJNPPKOLGHMMEFJCNAA.jaleo8@storelandia.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