Re: XA rollback problem

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: XA rollback problem
Дата
Msg-id Pine.BSO.4.63.0604261525420.31984@leary2.csoft.net
обсуждение исходный текст
Ответ на Re: XA rollback problem  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc

On Mon, 24 Apr 2006, Kris Jurka wrote:

> Indeed the closing before committing is a problem.  The PGXADatasource code
> is piggybacking on the PooledConnection code.  When you close a
> PooledConnection a rollback occurs so that the connection can be reused. For
> the XAConnection it must put the connection into a pending-closed state and
> wait for the transaction manager to commit or rollback the connection.  It'll
> be a little tricky to make this work for both the PooledConnection and
> XAConnection cases, but I'll take a look at that this week.
>

I have applied the attached patch to the 8.1 and head cvs branches which
fixes it for me.

I've uploaded some jars for you to test here, and a new official release
should hopefully be out within the week.

http://www.ejurka.com/pgsql/jars/nb/

Kris Jurka

Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Prepared statement leak
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Bug with callable statement and output parameters