From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Florent GuillaumeThis 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:
https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/test/java/org/postgresql/test/xa/XADataSourceTest.java#L174
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:
Соглашаюсь с условиями обработки персональных данных