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

From Kris Jurka
Subject Re: 1300 to 3100 lines of code for XA support (was: Re: plans
Date
Msg-id Pine.BSO.4.56.0411021453540.1202@leary.csoft.net
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>)
Responses Re: 1300 to 3100 lines of code for XA support
List pgsql-jdbc

On Tue, 2 Nov 2004, Vadim Nasardinov wrote:

> > With current proposals it doesn't seem like much work on the driver
> > side.
>
> To get a better feel for what "not much work" actually looks like, I
> googled for existing implementations.
>

You might be interested to know that pg used to have a fake XA
implementation in the driver as well.

http://gborg.postgresql.org/project/pgjdbc/cvs/cvs.php/pgjdbc/org/postgresql/xa?sa=1

I don't think a straight lines of code count can really indicate the
difficulty of implementation.  If the backend API matches up with the XA
API then you can easily write even thousands of lines of boilerplate code.
If the APIs don't match then you may have to do some complicated mapping.
All of the real work for XA is on the backend side.

Kris Jurka


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: 1300 to 3100 lines of code for XA support
Next
From: Oliver Jowett
Date:
Subject: Re: 1300 to 3100 lines of code for XA support