WebLogic Messaging API Class Library |

# ISession.Recover Method

In a non-transacted session, this method forces redelivery of unackowledged messages.

All consumers receive delivered messages in a serial order. Acknowledging a received message automatically acknowledges all messages that have been delivered to the client.

This method causes a session to take the following actions:

- Stop message delivery
- Mark all messages that might have been delivered but not acknowledged as "redelivered"
- Restart the delivery sequence including all unacknowledged messages that had been previously delivered. Redelivered messages do not have to be delivered in exactly their original delivery order and may be delivered to different sessions (see the WebLogic .NET JMS developer guide documentation for information on ordered redelivery using the unit-of-order feature).

void Recover();

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to Stop and restart message delivery due to some internal error.
IllegalStateException | if the method is called by a transacted session.

#### See Also

ISession Interface | WebLogic.Messaging Namespace