Lesson 3: Send a message

Background

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.

Activity

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.

Discussion

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