Transactions through JDBC

From: "Albert" <alberto(dot)molteni(at)libero(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Transactions through JDBC
Date: 2007-04-11 16:49:49
Message-ID: 1176310189.383931.30140@o5g2000hsb.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all!

Actually I have a client-server application with one server and many
clients each one of which opens a different connection to the postgres
database. In order to avoid those known problems with the execution of
the different clients' operations at database, I implemented
everything in this way. Each operation is made so:

conn.executeUpdate("BEGIN");
conn.execute(...)
conn.execute(...)
conn.execute(...)
conn.executeUpdate("COMMIT");

May it be considered right, or am I making something wrong? I use JDBC
driver for postgres 8.1

Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jaime Silvela 2007-04-11 17:02:58 indexes, and tables within tables
Previous Message Listmail 2007-04-11 16:49:18 Re: [GENERAL] programmatic way to fetch latest release for a given major.minor version