[TIBCO.EMS.UFOCLIENT .NET client library 7.0 documentation]

Get or set the message listener for the session. -Deprecated, use MessageConsumer.MessageListener instead.

Namespace:  TIBCO.EMS.UFO
Assembly:  TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)

Syntax

[ObsoleteAttribute("Use MessageConsumer.MessageListener instead.")]
public IMessageListener MessageListener { get; set; }
<ObsoleteAttribute("Use MessageConsumer.MessageListener instead.")> _
Public Property MessageListener As IMessageListener
[ObsoleteAttribute(L"Use MessageConsumer.MessageListener instead.")]
public:
property IMessageListener^ MessageListener {
	IMessageListener^ get ();
	void set (IMessageListener^ value);
}

Remarks

The access of message listener through the Session object is deprecated. Please use the facility in MessageConsumer instead.

User should either use MessageHandler or MessageListener to handle asynchronous message consumptions, but not both. Setting up both will cause the message to be handled more than once which can result in undefined behavior

Exceptions

ExceptionCondition
IllegalStateExceptionIf the session is closed

See Also