TIBCO Enterprise Message Service 4.3.0 .NET Client Class Library

Session.MessageListener Property

NOTE: This property is now obsolete.

Use MessageConsumer.MessageListener instead.


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

public IMessageListener MessageListener {get; set;}

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


For complete details, see the corresponding item in the book TIBCO Enterprise Message Service .NET Reference.

Exceptions

Exception TypeCondition
IllegalStateExceptionIf the session is closed

See Also

Session Class | TIBCO.EMS Namespace