Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsTemplate.CreateConsumer Method

Create a NMS MessageConsumer for the given Session and Destination.

[Visual Basic]
Protected Overridable Sub CreateConsumer( _
   ByVal session As ISession, _
   ByVal destination As IDestination, _
   ByVal messageSelector As String _
)
[C#]
protected virtual IMessageConsumer CreateConsumer(
   ISession session,
   IDestination destination,
   string messageSelector
);

Parameters

session
the NMS Session to create a MessageConsumer for
destination
the NMS Destination to create a MessageConsumer for
messageSelector
the message selector for this consumer (can be
null
)

Return Value

the new NMS IMessageConsumer

See Also

NmsTemplate Class | Spring.Messaging.Nms.Core Namespace