Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SimpleMessageListenerContainer.CreateConsumer Method

Creates a MessageConsumer for the given Session and Destination.

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

Parameters

session
The session to create a MessageConsumer for.
destination
The destination to create a MessageConsumer for.

Return Value

The new MessageConsumer

See Also

SimpleMessageListenerContainer Class | Spring.Messaging.Nms.Listener Namespace