Re: Two-phase commit with JDBC
От | Florent Guillaume |
---|---|
Тема | Re: Two-phase commit with JDBC |
Дата | |
Msg-id | CAF-4BpOGX0fQpVJHvPOw=NZadp1mBL17OLHGOdePhr7XvU3_pQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Two-phase commit with JDBC (Edson Richter <edsonrichter@hotmail.com>) |
Ответы |
Re: Two-phase commit with JDBC
Re: Two-phase commit with JDBC |
Список | pgsql-jdbc |
Hi,
This is not PostgreSQL-specific.
You have to acquire a XADataSource then a XAConnection from it then its Connection.
Here's a unit test doing the two phases:
Florent
On Wed, May 25, 2016 at 1:45 AM, Edson Richter <edsonrichter@hotmail.com> wrote:
Hi,
Can I use two phase commit in PostgreSQL using JDBC without JTA or XA specialized libraries (I mean, JDBC only)?
Is there any simple J2SE example around?
Thanks,
-- Atenciosamente, Edson Carlos Ericksson Richter
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
В списке pgsql-jdbc по дате отправления: