Chapter Contents

Previous

Next
SAS/CONNECT User's Guide

Application Design

With indirect messaging, two or more applications communicate with each other indirectly using message queues. Therefore, the applications do not have to be running at the same time. The data is sent in the form of a message and is saved on a message queue until the receiving application is ready to fetch it. As a precaution, messages are written to disk. Therefore even if your queue terminates, the application can retrieve its messages.

A typical server application that uses indirect messaging would execute the following steps:

  1. Initialize the messaging environment.

  2. Check queue(s) for any messages.

  3. Respond to messages when required.

  4. Repeat steps 2 and 3 as needed.

  5. Shut down the messaging environment.

A typical client application that uses indirect messaging would execute the following steps:

  1. Initialize the messaging environment.

  2. Locate the collection manager.

  3. Establish communication with queue(s).

  4. Send or receive messages from an opened queue(s).

  5. Repeat steps 3 and 4 as desired.

  6. Release queue(s).

  7. Shut down the messaging environment.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.