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

SQL Anywhere 10.0.1 » QAnywhere » Tutorial: Exploring TestMessage

Lesson 2: Run the TestMessage application Next Page

Lesson 3: Send a message


Background

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

Activity
To send a message from TestMessage
  1. From the TestMessage - client1 Message menu, choose New. The New Message window appears.

  2. In the Destination ID field, enter client2. (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. Read the message.

    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.

Further reading