X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 83FA13A3C7C for ; Tue, 2 Nov 2004 20:17:18 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80205-04 for ; Tue, 2 Nov 2004 20:17:14 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 754E53A3C38 for ; Tue, 2 Nov 2004 20:17:15 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CP55X-0008K7-00; Wed, 03 Nov 2004 09:17:08 +1300 Message-ID: <4187EBA4.9060507@opencloud.com> Date: Wed, 03 Nov 2004 09:18:44 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (X11/20041021) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vadim Nasardinov Cc: pgsql-jdbc@postgresql.org Subject: Re: 1300 to 3100 lines of code for XA support References: <200410271617.28742@vadim.nasardinov> <4180062A.1000800@opencloud.com> <200411021447.54010@vadim.nasardinov> In-Reply-To: <200411021447.54010@vadim.nasardinov> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/32 X-Sequence-Number: 11454 Vadim Nasardinov wrote: > On the other hand, Section 6.2 [2] seems to suggest that you must > implement XA, if the backend supports 2PC. > 2. Guidelines and Requirements, p. 38 > > | * Drivers should provide access to every feature implemented by > | the underlying data source, including features that extend the > | JDBC API. When a feature is not supported, the corresponding > | methods throw an SQLException. The intent is for applications > | using the JDBC API to have access to the same feature set as > | native applications. I think this means that if a native app can issue "PREPARE TRANSACTION 'abcd'", then you should be able to do that via JDBC too. That's true regardless of whether we implement the XA interface or not. But XA would still be nice to have. -O