Message sending and receiving

Figure 28 shows the relationships between entities when messages are transmitted, and shows the flow of control.

Figure 28. Distributed queue management model

The figure shows the distributed queue management model. User exits, Message Channel Agents (MCAs), and the Channel control function, are the starred components, and can use the MQI, as described in the text following the diagram. Messages are operated on according to user exits by the receiving MCA, and received to the local queues. The MCA receives commands from the channel control function, which also sends instructions to the sending MCA. Messages are received from and sent to the communications network.

Notes:

  1. There is one MCA per channel, depending on the platform. There may be one or more channel control functions for a given queue manager.

  2. The implementation of MCAs and channel control functions is highly platform dependent; they may be programs or processes or threads, and they may be a single entity or many comprising several independent or linked parts.

  3. All components marked with a star can use the MQI.

Channel parameters

An MCA receives its parameters in one of several ways:

Certain attributes not defined in the channel definition are also negotiable:

Split messages
If one end does not support this, split messages will not be sent.

Conversion capability
If one end cannot perform the necessary code page conversion or numeric encoding conversion when needed, the other end must handle it. If neither end supports it, when needed, the channel cannot start.

Distribution list support
If one end does not support distribution lists, the partner MCA sets a flag in its transmission queue so that it will know to intercept messages intended for multiple destinations.

Channel status and sequence numbers

Message channel agent programs keep records of the current sequence number and logical unit of work number for each channel, and of the general status of the channel. Some platforms allow you to display this status information to help you control channels.



© IBM Corporation 2002. All Rights Reserved