Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SendToQueueDistributedTransactionExceptionHandler.IsPoisonMessage Method

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

[Visual Basic]
Public NotOverridable Sub IsPoisonMessage( _
   ByVal message As Message _
) _
    Implements IDistributedTransactionExceptionHandler.IsPoisonMessage
[C#]
public bool IsPoisonMessage(
   Message message
);

Parameters

message
The incoming message.

Return Value

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

Implements

IDistributedTransactionExceptionHandler.IsPoisonMessage

Remarks

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

SendToQueueDistributedTransactionExceptionHandler Class | Spring.Messaging.Listener Namespace