XaTransaction.begin

Begins a distributed transaction (managed by xa_trans). Please note that this phase may fail for some connections if a (normal) transaction is already started (this depends on the database provider being used), so it's better to avoid starting any (normal) transaction on any of the connections registered with xa_trans.

class XaTransaction
bool
begin
()

Return Value

Type: bool

TRUE if no error occurred

Throws