A transaction is completed using either its session's
Commit method or its session's
Rollback method. The completion of a session's current transaction automatically begins the next. The result is that a transacted session always has a current transaction within which its work is done. If a
Commit call throws an ambiguous exception, then the result of the transaction is ambiguous: either all operations within the transaction succeeded, or all operations rolled back.
|MessageException||if JMS fails to Commit the transaction due to some internal error.|
|TransactionRolledBackException||if the transaction is rolled back due to some internal error during Commit.|
|IllegalStateException||if the method is not called by a transacted session.|