Chapter 8: Message Service Tuning
In client applications, a shared listener can greatly improve performance for nondurable topic subscribers by creating a single message queue for all the topic subscriptions. To use this feature:
In EAServer Manager create a topic connection factory (or modify the one that you use already). Set the SHARED_LISTENER property to true.
In your code:
Use this connection factory to create your topic subscriptions.
Install a message listener on the first topic subscription, then each nondurable subscription that uses the connection, receives messages from this listener.
EAServer imposes two restrictions for shared listeners:
Do not call setMessageListener with a null parameter. This shuts down the current listener, which may be in use by other subscribers.
Do not call setMessageListener with the name of another listener, which shuts down the current listener and registers the new listener.
|Copyright © 2005. Sybase Inc. All rights reserved.|