Two Phase Commit Transactions
The ODBC/JDBC driver supports two-phase commit transactions, that is, a single transaction across different Firebird databases.Up to 16 databases can be accessed simultaneously in one such transaction — that is an absolute limit.
The call to start a two-phase commit transaction is:
SQLSetConnectAttr (connection, 4000, (void*) TRUE, 0);
To cancel the common connection:
SQLSetConnectAttr (connection, 4000, (void*) FALSE, 0);