gtpa2m0jApplication Programming

Message Queue Interface (MQI) Client

The MQI client provides TPF applications access to the standard message queue interface (MQI), supported by other MQSeries product offerings. The MQI client implements an MQSeries client on the TPF system. With this function, TPF applications can now interact with MQSeries applications running on several different platforms using a messaging and queuing model for communication services. An ISO-C interface is provided for the 11 functions that make up the MQI. The MQI client function is implemented as an ISO-C library, with the 11 MQI functions implemented as external functions in this library. A complete description of the MQI is contained in the MQSeries Message Queue Interface Technical Reference. Specifics about MQI clients is found in MQSeries Clients and MQSeries Distributed Queue Management Guide.

The TPF MQI client implementation is based on the standard MQSeries client server interface used by other MQSeries product offerings. MQSeries clients use MQI channels to communicate with MQ seriess. The MQI client uses LU 6.2 sessions through Common Programming Interface for Communications (CPI-C) or Transmission Control Protocol/Internet Protocol (TCP/IP) to connect with remote MQI queue managers that are capable of running MQ series function. A channel definition must be created at both the MQI client and server ends of the connection. The MQI channel directory is where the TPF system maintains a maximum of 50 channel definitions. The ZMQID ALTER, ZMQID DEFINE, ZMQID DELETE, and ZMQID DISPLAY commands are used to maintain the MQI channel directory. For more information about maintaining the MQI channel directory, see TPF Operations.