
Starts work on behalf of a transaction branch specified in
xid.
If TMJOIN is specified, the start applies to joining a transaction
previously seen by the resource manager. If TMRESUME is specified,
the start applies to resuming a suspended transaction specified in the
parameter
xid.
If neither TMJOIN nor TMRESUME is specified and the transaction
specified by
xid has previously been seen by the resource
manager, the resource manager throws the XAException exception with
XAER_DUPID error code.
Parameters:
-
xid - A global transaction identifier to be associated
with the resource.
-
flags - One of TMNOFLAGS, TMJOIN, or TMRESUME.
Throws:
-
XAException - An error has occurred. Possible exceptions
are XA_RB*, XAER_RMERR, XAER_RMFAIL, XAER_DUPID, XAER_OUTSIDE,
XAER_NOTA, XAER_INVAL, or XAER_PROTO.