Records the outcome of transaction preparation. The decision code
indicates whether the transaction is read-only, requires commit or
has rolled back.
This method is called to record the outcome after preparing a
transaction. It must record a decision to commit or rollback the
transaction. This method may be skipped if the transaction is
identified as read-only or for local transactions.
If this method is called,
JournalImpl.commit commit or
JournalImpl.rollbackrollback must follow.
Valid values for the decision are XAResource.XA_OK,
XAResource.XA_RDONLY, or any of the heuristic codes
defined by XAException.XA_HEUR*.
Parameters: xid - The transaction identifier Parameters: decision - The outcome of the prepare stage |