Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageListenerAdapter.OnMessage(Message, ISession) Method

Spring ISessionAwareMessageListener entry point.

Delegates the message to the target listener method, with appropriate conversion of the message argument. If the target method returns a non-null object, wrap in a EMS message and send it back.

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

Parameters

message
The incoming message.
session
The session to operate on.

Implements

ISessionAwareMessageListener.OnMessage

See Also

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