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

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

Syntax

Visual Basic
Function CreateReceiver ( _
	queue As IQueue _
) As IQueueReceiver
C#
IQueueReceiver CreateReceiver(
	IQueue queue
)
Visual C++
IQueueReceiver^ CreateReceiver(
	IQueue^ queue
)

Parameters

queue
Type: Kaazing.JMS..::..IQueue
the Queue to access

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.

See Also