pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Musgrove <mmusgrov@redhat.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5297: Add XATMI C API
Date: Tue, 26 Apr 2011 11:01:05 +0100
Message-ID: <4DB697E1.1080506@redhat.com> (raw)
In-Reply-To: <4DB07D3B.2010504@enterprisedb.com>
References: <4DB04E1D.6000301@redhat.com>
	<24817.1303404224@sss.pgh.pa.us>
	<4DB063AB.1040800@redhat.com>
	<4DB07D3B.2010504@enterprisedb.com>

We would certainly be very interested in testing XA support. Our project 
is called BlackTie - it's an XATMI implementation. We use the JBossTS 
transaction manager for the transaction engine - although JBossTS is 
written in Java, providing XA support was reasonably easy since it 
conforms to the OTS specification which means we can control 
transactions from a C based XA environment.

There is an example of using different resource managers within 
transactions:
https://svn.jboss.org/repos/blacktie/trunk/atmibroker-xatmi/src/example/txfooapp
The files ora.c and db2.c show user code accessing resources from two 
different vendors  - the XA specific information is defined in 
btconfig.xml (basically it just exposes the XA open string, the symbol 
name of the xa switch structure and the name of the library that exports 
the switch symbol).

> On 21.04.2011 20:04, Michael Musgrove wrote:
>> I am referring to the X/Open specification Distributed Transaction
>> Processing: The XA Specification
>> (pubs.opengroup.org/onlinepubs/009680699/toc.pdf). If postgresql
>> provides a conforming Resource Manager switch then we can include
>> postgresql work along with interactions with other Resource Managers
>> (Oracle, DB2) in the same transaction. For example the equivalent
>> support in Oracle that I am asking for is documented at
>> http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adga1_xa.htm 
>>
>
> When I wrote the patch for the backend support, I was not able to find 
> any open source implementations of X/Open XA-compatible resource 
> managers or transaction managers, which makes it kind of hard to 
> implement the API correctly. There was plenty of JDBC XA 
> implementations, however, so I used that for testing.
>
> If you can find something to test it with, it probably wouldn't be 
> that hard to write the library.
>




view thread (6+ messages)  latest in thread

Message-ID: <4DB697E1.1080506@redhat.com>
Permalink:  ../4DB697E1.1080506@redhat.com/
Also on:    postgresql.org/message-id/4DB697E1.1080506@redhat.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-bugs@postgresql.org
  Cc: mmusgrov@redhat.com, heikki.linnakangas@enterprisedb.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #5297: Add XATMI C API
  In-Reply-To: <4DB697E1.1080506@redhat.com>
  References: <4DB04E1D.6000301@redhat.com> <24817.1303404224@sss.pgh.pa.us> <4DB063AB.1040800@redhat.com> <4DB07D3B.2010504@enterprisedb.com> <4DB697E1.1080506@redhat.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