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.
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
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to set the message listener due to some internal error. |