Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageListenerContainer.RollbackOnExceptionIfNecessary Method

Perform a rollback, handling rollback excepitons properly.

[Visual Basic]
Protected Overridable Sub RollbackOnExceptionIfNecessary( _
   ByVal session As ISession, _
   ByVal ex As Exception _
)
[C#]
protected virtual void RollbackOnExceptionIfNecessary(
   ISession session,
   Exception ex
);

Parameters

session
The session to rollback.
ex
The thrown application exception.

Exceptions

Exception Type Condition
NMSException in case of a rollback error.

See Also

AbstractMessageListenerContainer Class | Spring.Messaging.Nms.Listener Namespace