Re: 1300 to 3100 lines of code for XA support (was: Re: plans

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: 1300 to 3100 lines of code for XA support (was: Re: plans
Дата
Msg-id Pine.BSO.4.56.0411021453540.1202@leary.csoft.net
обсуждение исходный текст
Ответ на 1300 to 3100 lines of code for XA support (was: Re: plans and estimates for supporting JDBC 3.0)  (Vadim Nasardinov <vadimn@redhat.com>)
Ответы Re: 1300 to 3100 lines of code for XA support
Список 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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: 1300 to 3100 lines of code for XA support
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: 1300 to 3100 lines of code for XA support