IMessageListener


Interface

Declaration

interface IMessageListener 

Purpose

Asynchronously process an arriving message.

Remarks

This interface provides an asynchronous pathway for receiving messages. The program implements this interface, and registers a message listener with a MessageConsumer. When a message arrives, the client library calls the listener’s onMessage method with the message as its argument.

IMessageListener mimics the way in which JMS receives messages in a Java programming idiom. In contrast, EMSMessageHandler provides similar functionality in a .NET idiom. Programmers may select either idiom—but not both (which would cause duplicate message processing, with undefined behavior).

 

Method
Description
Page
87

Serialization

In compliance with the JMS specification, sessions distribute messages to listeners and event handler delegates in serial (non-concurrent) fashion.

Deprecated

In earlier releases, clients could register listeners with sessions as well as consumers. This practice is now deprecated—we recommend migrating existing code to one of these two practices:

See Also

MessageConsumer

Session


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com