register_connection


Description:

public bool register_connection (Connection cnc, string branch) throws Error

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

Note: any Connection object can only be registered with at most one XaTransaction object; also some connections may not be registered at all with a XaTransaction object because the database provider being used does not support it.

Parameters:

this

a XaTransaction object

cnc

the connection to add to this

branch

the branch qualifier

Returns:

true if no error occurred