Javadoc
Commit the transaction. Commit asks the transaction manager to execute the voting process
with the participants. Returns if the transaction successfully reaches either the
NOTCHANGED
or the COMMITTED
state, without waiting for the
transaction manager to notify all participants of the decision. If the transaction must be
aborted (because one or more participants are unable to prepare),
CannotCommitException
is thrown without waiting for the transaction manager to
notify all participants of the decision.