Re: XADataSource interface

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pg(at)fastcrypt(dot)com, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: XADataSource interface
Date: 2005-11-02 17:21:52
Message-ID: Pine.OSF.4.61.0511021906050.341014@kosh.hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 31 Oct 2005, Kris Jurka wrote:

>
>
> On Sun, 30 Oct 2005, Heikki Linnakangas wrote:
>
>> The failures at testRecover and testRollback were because
>> PGXAConnection.rollback method called Xid.equals with null argument.
>> I added a null-check for that, see attached patch.
>
> Applied. I'll put out a new dev release with the xa patches later tonight.
> Can you clarify what does/doesn't work in xa for the docs?

Thanks!

English is not my native language, so please check spelling:

"
The JTA specification requires an XADataSource implementation to
support transaction interleaving (see JTA spec section 3.4.4). However,
since PostgreSQL server doesn't support it natively, the JDBC driver
cannot support it either. The same goes for suspend/resume.

In practice, transaction managers don't need transaction interleaving or
suspend/resume to function correctly. Some commercial databases
also don't implement them natively, but emulate them in the JDBC driver.
That's error prone; PostgreSQL driver will throw an XAException instead.
"

The docs should also include instructions for using the XADataSource.
Example configurations for various application servers would be a nice
too.

- Heikki

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Michael Dean 2005-11-02 23:30:14 postgres and ofbiz
Previous Message Joost Kraaijeveld 2005-11-02 13:10:48 Re: How to solve invalid input for tyep timestamp problem?