Home

 

Channel message exit programs

 

We can use the channel message exit for the following:

On WebSphere MQ for iSeries, UNIX systems, z/OS, and Windows systems, and with WebSphere MQ clients, we can specify a list of message exit programs to be run in succession.

Channel message exit programs are called at the following places in an MCA’s processing cycle:

The message exit is passed an agent buffer containing the transmission queue header, MQXQH, and the application message text as retrieved from the queue. (The format of MQXQH is given in the Application Programming Reference book.) If you use reference messages, that is messages that contain only a header which points to some other object that is to be sent, the message exit recognizes the header, MQRMH. It identifies the object, retrieves it in whatever way is appropriate appends it to the header, and passes it to the MCA for transmission to the receiving MCA. At the receiving MCA, another message exit recognizes that this is a reference message, extracts the object, and passes the header on to the destination queue. See the WebSphere MQ Application Programming Guide for more information about reference messages and some sample message exits that handle them.

Message exits can return the following responses:

  1. Message exits are called just once for every complete message transferred, even when the message is split into parts.

  2. In UNIX systems, if you provide a message exit for any reason the automatic conversion of user IDs to lowercase characters does not operate. See User IDs on UNIX systems.

  3. An exit runs in the same thread as the MCA itself. It also runs inside the same unit of work (UOW) as the MCA because it uses the same connection handle. Therefore, any calls made under syncpoint are committed or backed out by the channel at the end of the batch. For example, one channel message exit program can send notification messages to another and these messages will only be committed to the queue when the batch containing the original message is committed.

    Therefore, it is possible to issue syncpoint MQI calls from a channel message exit program.

 

Parent topic:

What are channel-exit programs?


ic17560_


 

Home