Prepares the participant. Any locks for this participant's work should be recoverable (either saved to an external file OR be part of the instance's non-transient state so that they can be flushed into the transaction manager's log).
@return int READ_ONLY if no second round is needed.Participants that return this value on prepare will not be called by commit or rollback afterwards.
@exception RollbackException For a NO vote.This indicates that the participant has already rolled back (or marked for rollback) the work on behalf of this participant.
@exception HeurHazardException On possible conflicts.This happens for remote participants instances, in case of communication failures.
@exception HeurMixedException If some subordinateparticipants voted YES, timed out and committed heuristically whereas afterwards some NO votes where received.
@exception SysException
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.