WebLogic Messaging API Class Library |

# ISession.Rollback Method

In a transacted session, this method rolls back any messages done in this transaction and releases any locks currently held. Messages produced under the transaction are deleted, while messages received under the transaction are released for redelivery.

void Rollback();

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to roll back the transaction due to some internal error.
IllegalStateException | if the method is not called by a transacted session.

#### See Also

ISession Interface | WebLogic.Messaging Namespace