Re: 1300 to 3100 lines of code for XA support - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: 1300 to 3100 lines of code for XA support
Date
Msg-id 4187EBA4.9060507@opencloud.com
Whole thread Raw
In response to 1300 to 3100 lines of code for XA support (was: Re: plans and estimates for supporting JDBC 3.0)  (Vadim Nasardinov <vadimn@redhat.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: 1300 to 3100 lines of code for XA support (was: Re: plans
Next
From: Alan Stange
Date:
Subject: Re: executeBatch() issue with new driver?