Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » QAnywhere » QAnywhere Java API Reference » ianywhere.qanywhere.client package » Interface QAManagerBase

setMessageListener2 method Next Page

setMessageListenerBySelector method


Synopsis

void ianywhere.qanywhere.client.QAManagerBase.setMessageListenerBySelector(
String address,
String selector,
QAMessageListener listener
)
throws QAException

Parameters
Throws
Remarks

Registers a QAMessageListener object to receive QAnywhere messages asynchronously, with a message selector.

The address parameter specifies a local queue name used to receive the message. You can only have one listener object assigned to a given queue. The selector parameter specifies a selector to be used to filter the messages to be received on the given address. If you want to listen for QAnywhere system messages, including push notifications and network status changes, specify "system" as the queue name.

Use this method to receive messages asynchronously.