Skip site navigation (1) Skip section navigation (2)

Re: XAResource implementation

From: Kris Jurka <books(at)ejurka(dot)com>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: joël Winteregg <joel(dot)winteregg(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org, Ludovic Orban <ludovic(dot)orban(at)gmail(dot)com>
Subject: Re: XAResource implementation
Date: 2007-11-14 22:11:23
Message-ID: Pine.BSO.4.64.0711140423050.12400@leary.csoft.net (view raw or flat)
Thread:
Lists: pgsql-jdbc

On Tue, 13 Nov 2007, Heikki Linnakangas wrote:

> Oh, I had forgotten about that. The difference is the close() between the 
> getConnection()s.
>
> I started having second doubts about that case you posted in June, so I 
> tested what Derby does if you call getConnection() twice, without a close in 
> between. You get an error ("Cannot close a connection while a global 
> transaction is still active."), so at least they consider it incorrect as 
> well.

I'm not super happy that explicit close vs implicit close has different 
transactional behavior, but people really shouldn't be writing code like 
this, so I've applied your patch to 8.1, 8.2 and HEAD.

Kris Jurka


In response to

Responses

pgsql-jdbc by date

Next:From: joël WintereggDate: 2007-11-17 17:01:14
Subject: Re: XAResource implementation
Previous:From: Heikki LinnakangasDate: 2007-11-13 22:52:35
Subject: Re: XAResource implementation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group