Creates a QueueReceiver object to receive messages from the specified queue using a message selector.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Function CreateReceiver ( _
	queue As IQueue, _
	messageSelector As String _
) As IQueueReceiver
C#
IQueueReceiver CreateReceiver(
	IQueue queue,
	string messageSelector
)
Visual C++
IQueueReceiver^ CreateReceiver(
	IQueue^ queue, 
	String^ messageSelector
)

Parameters

queue
Type: Kaazing.JMS..::..IQueue
the Queue to access
messageSelector
Type: System..::..String
only messages with properties matching the message selector expression are delivered. A value of null or an empty string indicates that there is no message selector for the message consumer.

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the session fails to create a receiver due to some internal error.
Kaazing.JMS..::..InvalidDestinationExceptionif an invalid queue is specified.
Kaazing.JMS..::..InvalidSelectorExceptionif the message selector is invalid.

See Also