Re: XA Support for Postgres

Поиск
Список
Период
Сортировка
Искать
От
Heikki Linnakangas
Тема
Re: XA Support for Postgres
Дата
Msg-id
47824DE8.8020402@enterprisedb.com
Ответ на
XA Support for Postgres (Håkan Jacobsson)
Список
Дерево обсуждения
XA Support for Postgres Håkan Jacobsson <hakan.jacobsson@relevanttraffic.com>
An I/O error occured while sending to the backend. Stef <svb@ucs.co.za>
Re: An I/O error occured while sending to the backend. Altaf Malik <mmalik_altaf@yahoo.com>
Re: An I/O error occured while sending to the backend. Kris Jurka <books@ejurka.com>
Re: XA Support for Postgres Heikki Linnakangas <heikki@enterprisedb.com>
Re: XA Support for Postgres Håkan Jacobsson <hakan.jacobsson@relevanttraffic.com>
Re: XA Support for Postgres Heikki Linnakangas <heikki@enterprisedb.com>
Re: XA Support for Postgres Håkan Jacobsson <hakan.jacobsson@relevanttraffic.com>
Håkan Jacobsson wrote:
> Hi,
> 
> I've posted earlier about this. I had problems connecting to the two postgresql databases our company system uses when migrating to JBoss 4.2.2.GA .
> Lots of exceptions about 'Generic JDBC connection can not be created' (something like that).
> I got a solution from a guy here at the mailing list. By using a JBoss database configuration file (postgres-ds.xml)  with 'XA-support' we got rid of the exceptions.
> I've tried to search google to understand what this 'XA-support' really does, but I haven't  found that much (other than an old thread 'XA-support for Postgres) dating back to 2005.
> Can someone point me to some good documentation for the XA-support for Postgres?

X/Open XA is a standard interface for performing two-phase commit across 
different resource managers, like databases.

In Java-world, XA is mapped to the Java Transaction API (JTA). XA 
support basically means that the driver comes with an implementation of 
the javax.sql.XADataSource interface.

You need two-phase commit if you want to update two databases in a 
single atomic transaction.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com
В списке pgsql-jdbc по дате отправления
От: Stef
Дата:
От: Christian Schröder
Дата:
FAQ