void QAManagerBase.setMessageListenerBySelector2( String address, String selector, QAMessageListener2 listener ) throws QAException
address The address of a local queue name used to receive messages, or system to listen for QAnywhere system messages.
selector The selector to be used to filter the messages to be received.
listener The listener.
Thrown if there is a problem registering the QAMessageListener2 object.
Registers a QAMessageListener2 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.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |