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.
Disassociate the transaction (identified by xid) from the resource
Ends the work performed on behalf of a transaction branch. The resource
manager disassociates the XA resource from the transaction branch
specified and lets the transaction complete. If TMSUSPEND is specified in
the flags, the transaction branch is temporarily suspended in an
incomplete state. The transaction context is in a suspended state and
must be resumed via the start method with TMRESUME specified. If TMFAIL
is specified, the portion of work has failed. The resource manager may
mark the transaction as rollback-only If TMSUCCESS is specified, the
portion of work has completed successfully.
xid - The global transaction identifier to assign to the prepared commit.
A value indicating the resource manager's vote on
the outcome of the transaction. The possible values are: XA_RDONLY or
XA_OK. If the resource manager wants to roll back the transaction, it
should do so by raising an appropriate XAException in the prepare method.
XAException - An error has occurred. Possible exception values
are: XA_RB*, XAER_RMERR, XAER_RMFAIL, XAER_NOTA, XAER_INVAL, or
Obtains a list of prepared transaction branches from a resource manager.
The transaction manager calls this method during recovery to obtain the
list of transaction branches that are currently in prepared or
heuristically completed states.
flag - One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS.
TMNOFLAGS must be used when no other flags are set
in the parameter.
An array of zero or more XIDs of the transaction branches that are currently
in a prepared or heuristically completed state. If an error occurs during the operation,
the resource manager should throw the appropriate XAException.
XAException - An error has occurred. Possible values are XAER_RMERR,
XAER_RMFAIL, XAER_INVAL, and XAER_PROTO.