Re: PostgreSQL XAResource & GlassFish 3.1.2.2 - Mailing list pgsql-jdbc

From Bryan Varner
Subject Re: PostgreSQL XAResource & GlassFish 3.1.2.2
Date
Msg-id 511A89CF.40000@polarislabs.com
Whole thread Raw
In response to Re: PostgreSQL XAResource & GlassFish 3.1.2.2  (Florent Guillaume <fg@nuxeo.com>)
List pgsql-jdbc
> Maybe in PGXAConnection the field state (and maybe others) should be volatile?

That might be appropriate for Java 5 +, but before the memory management
changes introduced in 1.5, I don't think volatile access to state or
currentXid is going to be enough to enforce the semantics the XAResource
implementation is doing precondition checks against in a 'more than one
thread' environment.

Regards,
-Bryan


pgsql-jdbc by date:

Previous
From: Florent Guillaume
Date:
Subject: Re: PostgreSQL XAResource & GlassFish 3.1.2.2
Next
From: Heikki Linnakangas
Date:
Subject: Re: PostgreSQL XAResource & GlassFish 3.1.2.2