Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageListenerAdapter.OnMessage(Message) Method

Standard JMS {@link MessageListener} entry point.

Delegates the message to the target listener method, with appropriate conversion of the message arguments

[Visual Basic]
Public NotOverridable Overloads Sub OnMessage( _
   ByVal message As Message _
) _
    Implements IMessageListener.OnMessage
[C#]
public void OnMessage(
   Message message
);

Parameters

message
The incoming message.

Implements

IMessageListener.OnMessage

Remarks

In case of an exception, the HandleListenerException method will be invoked. Note Does not support sending response messages based on result objects returned from listener methods. Use the ISessionAwareMessageListener entry point (typically through a Spring message listener container) for handling result objects as well.

See Also

MessageListenerAdapter Class | Spring.Messaging.Ems.Listener.Adapter Namespace | MessageListenerAdapter.OnMessage Overload List