Creates a QueueReceiver object to receive messages from the
specified queue using a message selector.
Namespace:
Kaazing.JMSAssembly: 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
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the session fails to create a receiver due to some internal error. |
| Kaazing.JMS..::..InvalidDestinationException | if an invalid queue is specified. |
| Kaazing.JMS..::..InvalidSelectorException | if the message selector is invalid. |