Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageListenerAdapter.GetHandlerMethodName Method

Gets the name of the listener method that is supposed to handle the given message. The default implementation simply returns the configured default listener method, if any.

[Visual Basic]
Protected Overridable Sub GetHandlerMethodName( _
   ByVal originalIMessage As IMessage, _
   ByVal extractedMessage As Object _
)
[C#]
protected virtual string GetHandlerMethodName(
   IMessage originalIMessage,
   object extractedMessage
);

Parameters

originalIMessage
The NMS request message.
extractedMessage
The converted JMS request message, to be passed into the listener method as argument.

Return Value

the name of the listener method (never

null
)

Exceptions

Exception Type Condition
NMSException if thrown by NMS API methods

See Also

MessageListenerAdapter Class | Spring.Messaging.Nms.Listener.Adapter Namespace