pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryan Varner <bvarner@polarislabs.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL XAResource & GlassFish 3.1.2.2
Date: Tue, 12 Feb 2013 13:28:31 -0500
Message-ID: <511A89CF.40000@polarislabs.com> (raw)
In-Reply-To: <CAF-4BpNWb_XForP6f7dWxncfwm7bbdyL6EWPHHOp3W7C2NfWDA@mail.gmail.com>
References: <A2B35D2698B0C74F9B8333525E67ED0135F89007@plindyexch02.polarislabs.lan>
	<511A2C7F.1040104@vmware.com>
	<511A675B.3020207@polarislabs.com>
	<CAF-4BpNWb_XForP6f7dWxncfwm7bbdyL6EWPHHOp3W7C2NfWDA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (24+ messages)  latest in thread

Message-ID: <511A89CF.40000@polarislabs.com>
Permalink:  ../511A89CF.40000@polarislabs.com/
Also on:    postgresql.org/message-id/511A89CF.40000@polarislabs.com

 · 

reply

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-jdbc@postgresql.org
  Cc: bvarner@polarislabs.com
  Subject: Re: PostgreSQL XAResource & GlassFish 3.1.2.2
  In-Reply-To: <511A89CF.40000@polarislabs.com>
  References: <A2B35D2698B0C74F9B8333525E67ED0135F89007@plindyexch02.polarislabs.lan> <511A2C7F.1040104@vmware.com> <511A675B.3020207@polarislabs.com> <CAF-4BpNWb_XForP6f7dWxncfwm7bbdyL6EWPHHOp3W7C2NfWDA@mail.gmail.com> <511A89CF.40000@polarislabs.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