pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: pgsql-jdbc@postgresql.org
Cc: Michael Allman <msa@allman.ms>
Subject: XADataSource implementation
Date: Sun, 28 Aug 2005 10:34:17 +0300 (EEST)
Message-ID: <Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi> (raw)

Hi,

I've been working on the XADataSource implementation. Patch attached. Test case 
is in the separate zip file, because I couldn't get cvs to include it in the 
diff.

I looked at Micheal Allman's implementation, but decided to continue working on 
my original version instead. Michael's implementation was perhaps more 
ambitious, it had more thorough bookkeeping for resource associations and xids. 
Unfortunately there's no straightforward way to implement the full XA interface 
in a spec-compliant way. I did copy some snippets and test cases from Michael's 
code that were useful, though.

Thanks Michael for your hard work, it was a lot of help anyway!

This implementation doesn't try to support transaction interleaving as required 
by the XA spec. Instead, it throws an exception saying it's not supported.

I tested it with the JOnAS application server (after fixing some recovery bugs 
in JOnAS itself :), and it seems to be fine with the limitations. It needs 
testing with other application servers to see if the limitations matter for 
them.

Anyone with access to WebLogic, WebSphere etc: please help! I can send the 
simple servlet I used to test JOnAS if you're interested.

BTW: How does the translation work? What strings need to be translated?

- Heikki

Attachments:

  testcase.zip (application/zip, 2.3K) download

  xadatasource-heikki-20050827.diff.zip (application/zip, 15.4K) download

view thread (5+ messages)  latest in thread

Message-ID: <Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi>
Permalink:  ../Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi/
Also on:    postgresql.org/message-id/Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi

 · 

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: hlinnaka@iki.fi, msa@allman.ms
  Subject: Re: XADataSource implementation
  In-Reply-To: <Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi>
  References: <Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi>

* 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