Tells the participant to both prepare and commit its state associated with the given transaction.
@param txn the Transaction object
@throws Exception if there are any failures in preparing
@throws IllegalStateException if this participant has already beenprepared, committed, or aborted, or if this participant is not participating in the given transaction
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.