Sets the session's distinguished message listener (optional).
When the distinguished message listener is set, no other form of message receipt in the session can be used; however, all forms of sending messages are still supported.
This is an expert facility not used by regular JMS clients.
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 an internal error. |
See Also
ISession..::..MessageListener