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

SQL Anywhere 11.0.0 » QAnywhere » Creating QAnywhere Applications » Tutorial: Exploring TestMessage


Lesson 3: Send a message


The TestMessage sample includes two client message stores, which you started in Lesson 1. In this lesson you send a message from the TestMessage saclient1 application to the TestMessage saclient2 application.


To send a message from TestMessage

  1. From the Message menu on the saclient1, choose New. The New Message window appears.

  2. In the Destination ID field, enter saclient2. (Leave testmessage in the Destination Queue field.)

  3. Fill out the Subject and Message fields with sample text, and click Send.

    When testing messaging, it is often useful to use the current time as a subject line to make it easy to track individual messages.

    An Alert appears.

  4. Switch to the TestMessage client2 window. Select the message to display its contents in the bottom pane of the window.


Like other QAnywhere applications, TestMessage uses the QAnywhere API to manage messages. The QAnywhere API is supplied as a C++ API, a Java API, a Microsoft .NET API, and a SQL API.

See also