![]() |
Common Messaging Interface |
![]() ![]() |
There are two general classes of programs that can use the common messaging Interface. The first type uses the interface to administer information about the message transports. The second type uses the interface to send and receive messages between applications. Both of these types are discussed in the sections below.
SAS programs can utilize the common messaging interface to administer the information in the repository for the queues. The goal of such an administrator program is to encapsulate all information about the queues so that all other programs in the application can focus on using the queues rather than configuring them. This not only simplifies the other programs, it also makes the queues easier to administer by having all this information in one location.
An administrator program performs general functions such as:
The following SAS CALL routines are used to administer the information repository.
Other functions of the administration process include removing any unneeded information in the repository. This encompasses functions such as:
The following SAS CALL routines are used to administer these aspects of the information repository.
This section describes how a SAS program can use the common interface to access message queues to send and receive messages to other programs. The common interface alleviates the need for these user programs to use transport-specific code. This makes the user programs less vulnerable to changes to the queue's attributes. These programs interact with each queue in a consistent matter independent of the transport being used.
These programs perform general functions such as:
The following SAS CALL routines are the basis for initializing/terminating a transport, opening/closing a queue, and sending/receiving messages and attachments.
In addition, these programs may perform transaction processing on transaction queues. Such functions include:
The following SAS CALL routines are provided for applications that
require transaction processing:
![]() |
Common Messaging Interface |
![]() ![]() |