Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id E2BF62E2EBF for ; Wed, 5 Dec 2007 18:21:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 26161-07 for ; Wed, 5 Dec 2007 18:20:55 -0400 (AST) Received: from brmea-mail-4.sun.com (brmea-mail-4.Sun.COM [192.18.98.36]) by postgresql.org (Postfix) with ESMTP id 009B12E2E75 for ; Wed, 5 Dec 2007 18:21:04 -0400 (AST) Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id lB5ML3eL004698 for ; Wed, 5 Dec 2007 22:21:03 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JSL00101KJAC700@mail-amer.sun.com> (original mail from J.K.Shah@Sun.COM) for pgsql-jdbc@postgresql.org; Wed, 05 Dec 2007 15:21:03 -0700 (MST) Received: from [129.148.168.2] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JSL006J9KR0ALG0@mail-amer.sun.com>; Wed, 05 Dec 2007 15:21:01 -0700 (MST) Date: Wed, 05 Dec 2007 17:18:56 -0500 From: "Jignesh K. Shah" Subject: Re: JDBC XA Support and Sample code? In-reply-to: To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Message-id: <475723D0.5030500@sun.com> Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <47571061.9040506@sun.com> User-Agent: Thunderbird 2.0.0.4 (X11/20070622) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/32 X-Sequence-Number: 17887 So how come the API documentation for it is in privateapi and not publicapi.. That prompted me to infer that it is experimental. (I may not be alone in drawing that inference from it.) Thanks for pointer to the testsuite I will take a look at it. -Jignesh Kris Jurka wrote: > > > On Wed, 5 Dec 2007, Jignesh K. Shah wrote: > >> I am new to the XA world of PostgreSQL. What's the story of XA in >> PostgreSQL JDBC Driver? Also are there examples on how to use the >> "Experimental" XA driver in postgresql-jdbc? >> > > PG's XA support is not expiremental, it's been part of the driver > since the 8.1 release. How it's used depends a lot on who/what is > managing your transactions, so it's not real straightforward to put > together concrete examples and configurations. The JDBC driver's > testsuite (org.postgresql.test.xa) manually issues xa transaction > commands, so it's the most clear use of XA, but not really > representative of actual usage. > > Kris Jurka