Re: XA transactions and autocommit - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: XA transactions and autocommit
Date
Msg-id Pine.BSO.4.64.0612010514001.31193@leary2.csoft.net
Whole thread Raw
In response to XA transactions and autocommit  (Allan Saddi <allan@saddi.com>)
List pgsql-jdbc

On Sat, 7 Oct 2006, Allan Saddi wrote:

> I've been playing around with JTA using Apache Geronimo and the
> postgresql-8.1-407.jdbc3.jar driver. I've noticed a minor problem. The
> driver's XA code disables autocommit and assumes it will remain so
> indefinitely. tranql-connection (used by Geronimo for pooling) enables
> autocommit whenever the connection is returned to the pool. (Specifically in
> its ManagedXAConnection.cleanup method.) According to the J2EE Connector
> spec, this is apparently the correct thing to do.
>
> I've made a minor patch against 407 that does just this. XAResource.start
> disables autocommit, and autocommit is then re-enabled at the appropriate
> place within the prepare, commit, and rollback methods.
>

Patch applied, thanks.

Kris Jurka

pgsql-jdbc by date:

Previous
From: "antongiulio05@gmail.com"
Date:
Subject: Re: Authentication trick
Next
From: "Heikki Linnakangas"
Date:
Subject: Re: Authentication trick