Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id BFE3EB5DDD5 for ; Mon, 5 Sep 2011 12:23:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 17579-04 for ; Mon, 5 Sep 2011 15:23:01 +0000 (UTC) X-Greylist: delayed 00:09:34.61239 by SQLgrey-1.7.6 Received: from kolab.mnc.ch (62-2-77-205.static.cablecom.ch [62.2.77.205]) by mail.postgresql.org (Postfix) with ESMTP id E6113B5DDC9 for ; Mon, 5 Sep 2011 12:23:00 -0300 (ADT) Received: from localhost (kolab.op.lan [127.0.0.1]) by kolab.mnc.ch (Postfix) with ESMTP id 4C34E68B3D; Mon, 5 Sep 2011 17:13:23 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mnc.ch Received: from kolab.mnc.ch ([127.0.0.1]) by localhost (kolab.mnc.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F-tnUxzoZz9p; Mon, 5 Sep 2011 17:13:23 +0200 (CEST) Received: from localhost (kolab.op.lan [127.0.0.1]) by kolab.mnc.ch (Postfix) with ESMTP id 0322F6A1C5; Mon, 5 Sep 2011 17:13:23 +0200 (CEST) Received: from gc.localdomain (62-2-77-204.static.cablecom.ch [62.2.77.204]) by kolab.mnc.ch (Postfix) with ESMTP id E283A68B3D; Mon, 5 Sep 2011 17:13:22 +0200 (CEST) Received: by gc.localdomain (Postfix, from userid 500) id 7BAD3184185; Mon, 5 Sep 2011 17:13:22 +0200 (CEST) To: Olivier Thomas Cc: pgsql-jdbc@postgresql.org Subject: Re: Postgres jdbc transactions References: From: Guillaume Cottenceau X-Hashcash: 1:21:110905:othomas@webtiss.com::Dm3h/3Cjo7GMqWrj:0000000000000000000000000000000000000000003m8f X-Hashcash: 1:21:110905:pgsql-jdbc@postgresql.org::sIqD6q3RVLTDAopi:0000000000000000000000000000000000006eGs Date: Mon, 05 Sep 2011 17:13:22 +0200 In-Reply-To: (Olivier Thomas's message of "Mon\, 5 Sep 2011 16\:36\:15 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201109/10 X-Sequence-Number: 22128 Show your code. I'm suspecting the same problem as http://postgresql.1045698.n5.nabble.com/SET-AUTOCOMMIT-TO-OFF-no-longer-supported-td2169957.html quoting the glorious Kris: Check your classpath. I'd bet you've got two versions of the driver in there. Try adding this line somewhere in your app. org.postgresql.util.PSQLDriverVersion.main(null); It will print where it finds the driver on stdout. (an old version of the driver biting you) Olivier Thomas writes: > Hi, > > I am having a hard time to manage transactions with Postgres 8.3. > > I am using latest Postgres jdbc driver and apached dbutils library. > After getting a connexion I am trying to set Connection objet to autocommit > "false" but I get an error message from DB saying that setting autocommit to > off is no longer supported. > Therefore, when I'm trying to call "rollcack" at the en d of my code, I am > rejected sayning that my DB is in autocommit true. > Can you tell me what I am doing wrong or which library I should use ?  > so far I have found no example   on the web... > > Thanks > O. -- Guillaume Cottenceau