pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludovic Orban <lorban@bitronix.be>
To: Kris Jurka <books@ejurka.com>
Cc: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres XA support
Date: Tue, 31 Oct 2006 11:24:36 +0100
Message-ID: <c016d00b0610310224j31896e60p896c2a999bfb58ba@mail.gmail.com> (raw)
In-Reply-To: <Pine.BSO.4.63.0610301345460.2855@leary2.csoft.net>
References: <c016d00b0610071603q63c01a99q8bd165f3cb6a2f04@mail.gmail.com>
	<45288F3C.1030906@ejurka.com>
	<c016d00b0610080656m4eb3bd1aye1c96b3ace6b8812@mail.gmail.com>
	<45297847.7060304@ejurka.com>
	<452A2CA0.2080900@enterprisedb.com>
	<c016d00b0610090451h1bc0e89bscf600eb6ba7747cf@mail.gmail.com>
	<452ABFFE.3000108@enterprisedb.com>
	<c016d00b0610100500x58870319xf2a156065c9e21c4@mail.gmail.com>
	<452BA80C.7060605@enterprisedb.com>
	<Pine.BSO.4.63.0610301345460.2855@leary2.csoft.net>

Kris,

2006/10/30, Kris Jurka <books@ejurka.com>:
>
> I see how Allan's patch would get UPDATE 1 to commit, but UPDATE 2 and 3
> are the equivalent of an interleaved transaction and I don't see how that
> could possibly work.  I'm not sure what sort of protection we need to add
> to prevent people from doing this or other transaction handling actions on
> the connection.  Right now the Connection object doesn't know if it is
> being used by a XADatasource.

The problem is not if a connection was created by an XADatasource or
not but if it is being used in a global transaction context or not.

Weblogic's connection pool has a parameter called
local-transaction-supported which when set to false will disallow
local transactions to be executed on connections taken from that pool.

I guess you could enforce the same behavior in the driver by throwing
a SQLException when some query is executed and XAResource.start() has
not been called yet or XAResource.end() has already been called.

Ludovic



view thread (24+ messages)  latest in thread

Message-ID: <c016d00b0610310224j31896e60p896c2a999bfb58ba@mail.gmail.com>
Permalink:  ../c016d00b0610310224j31896e60p896c2a999bfb58ba@mail.gmail.com/
Also on:    postgresql.org/message-id/c016d00b0610310224j31896e60p896c2a999bfb58ba@mail.gmail.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: lorban@bitronix.be, books@ejurka.com, heikki@enterprisedb.com
  Subject: Re: Postgres XA support
  In-Reply-To: <c016d00b0610310224j31896e60p896c2a999bfb58ba@mail.gmail.com>
  References: <c016d00b0610071603q63c01a99q8bd165f3cb6a2f04@mail.gmail.com> <45288F3C.1030906@ejurka.com> <c016d00b0610080656m4eb3bd1aye1c96b3ace6b8812@mail.gmail.com> <45297847.7060304@ejurka.com> <452A2CA0.2080900@enterprisedb.com> <c016d00b0610090451h1bc0e89bscf600eb6ba7747cf@mail.gmail.com> <452ABFFE.3000108@enterprisedb.com> <c016d00b0610100500x58870319xf2a156065c9e21c4@mail.gmail.com> <452BA80C.7060605@enterprisedb.com> <Pine.BSO.4.63.0610301345460.2855@leary2.csoft.net> <c016d00b0610310224j31896e60p896c2a999bfb58ba@mail.gmail.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