XaTransaction.registerConnection

bool registerConnection(gda.connection.Connection cnc, string branch)

Registers cnc to be used by xa_trans to create a distributed transaction.

Note

any #GdaConnection object can only be registered with at most one #GdaXaTransaction object; also

some connections may not be registered at all with a #GdaXaTransaction object because the database provider being used does not support it.

Parameters

cncthe connection to add to xa_trans
branchthe branch qualifier

Returns

true if no error occurred

Throws

[XaTransactionException]