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

SQL Anywhere 11.0.1 » QAnywhere » QAnywhere Reference » QAnywhere Java API reference » QAnywhere Java API for clients » QAManagerBase interface


setMessageListener2 method

void QAManagerBase.setMessageListener2(
  String address,
  QAMessageListener2 listener
throws QAException
  • address   The address of a local queue name used to receive messages, or system to listen for QAnywhere system messages.

  • listener   The listener.

  • Thrown if there is a problem registering the QAMessageListener2 object.


Registers a QAMessageListener2 object to receive QAnywhere messages asynchronously.

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. 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.

See Also

QAMessageListener2 interface