Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IDistributedTransactionExceptionHandler.IsPoisonMessage Method

Determines whether the incoming message is a poison message. This method is called before the IMessageListener is invoked.

[Visual Basic]
Public Sub IsPoisonMessage( _
   ByVal message As Message _
bool IsPoisonMessage(
   Message message


The incoming message.

Return Value

true if it is a poison message; otherwise, false.


The DistributedTxMessageListenerContainer will call HandlePoisonMessage if this method returns true and will then commit the distibuted transaction (removing the message from the queue).

See Also

IDistributedTransactionExceptionHandler Interface | Spring.Messaging.Listener Namespace