Re: Two-phase commit with JDBC - Mailing list pgsql-jdbc

From Florent Guillaume
Subject Re: Two-phase commit with JDBC
Date
Msg-id CAF-4BpOGX0fQpVJHvPOw=NZadp1mBL17OLHGOdePhr7XvU3_pQ@mail.gmail.com
Whole thread Raw
In response to Two-phase commit with JDBC  (Edson Richter <edsonrichter@hotmail.com>)
Responses Re: Two-phase commit with JDBC  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Re: Two-phase commit with JDBC  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
List 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

pgsql-jdbc by date:

Previous
From: Edson Richter
Date:
Subject: Two-phase commit with JDBC
Next
From: Jeremy Whiting
Date:
Subject: Re: Two-phase commit with JDBC