Interface
Asynchronously process an arriving message.
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 idiombut not both (which would cause duplicate message processing, with undefined behavior).
In compliance with the JMS specification, sessions distribute messages to listeners and event handler delegates in serial (non-concurrent) fashion.
In earlier releases, clients could register listeners with sessions as well as consumers. This practice is now deprecatedwe recommend migrating existing code to one of these two practices:
EMSMessageHandler
delegates with consumers.
TIBCO Enterprise Message Service™ .NET Reference System Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |