An application uses a message listener to receive messages asynchronously.
Method | Description |
---|---|
onMessage | Deliver a message asynchronously to the message consumer. |
virtual xmsVOID onMessage(Message *message);
Deliver a message asynchronously to the message consumer.
onMessage() is a method of the message listener that is registered with the message consumer. The name of the method must be onMessage.
For more information about using message listeners, see Using message listeners in C++.