Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.CreateConsumer Method

Create a EMS MessageConsumer for the given Session and Destination.

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

Parameters

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

Return Value

the new EMS MessageConsumer

Exceptions

Exception Type Condition
EMSException If there is any problem accessing the EMS API

See Also

EmsTemplate Class | Spring.Messaging.Ems.Core Namespace