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

From Tsunakawa, Takayuki
Subject Re: Two-phase commit with JDBC
Date
Msg-id 0A3221C70F24FB45833433255569204D1F57A678@G01JPEXMBYT05
Whole thread Raw
In response to Re: Two-phase commit with JDBC  (Florent Guillaume <fguillaume@nuxeo.com>)
List pgsql-jdbc

From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Florent Guillaume
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:

 

 

And the chapter “Distributed Transaction” in the JDBC specification will help you to understand the API usage and the above test cases.

 

Regards

Takayuki Tsunakawa

 

 

pgsql-jdbc by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: Two-phase commit with JDBC
Next
From: Vladimir Sitnikov
Date:
Subject: Re: Roadmap: JDK 9 testing.