Collapse All Expand All

.NET Framework Class Library
Session Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

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

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.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

Exception | Condition
--- | ---
TIBCO.EMS..::.IllegalStateException | If the session is closed

# See Also

Session Class
TIBCO.EMS Namespace