Sets the message consumer's MessageListener.

Setting the message listener to null is the equivalent of unsetting the message listener for the message consumer.

The effect of calling MessageConsumer.setMessageListener while messages are being consumed by an existing listener or the consumer is being used to consume messages synchronously is undefined.

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

Syntax

Visual Basic
Property MessageListener As IMessageListener
	Get
	Set
C#
IMessageListener MessageListener { get; set; }
Visual C++
property IMessageListener^ MessageListener {
	IMessageListener^ get ();
	void set (IMessageListener^ value);
}

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to set the message listener due to some internal error.

See Also

IMessageConsumer..::..MessageListener