MQSeries Programming Patterns
by Mark Perry, Manesh Balachandran, Jorge Plata, Paul Solano, Phillip Thomas
3.7. Message grouping in MQI
As explained in Chapter 2, “Messaging and the APIs” on page 11, message grouping lets us add some grouping logic to the messages without having to code all that logic into the application. The grouping is managed by the queue manager, and provides basic features such as ordering and group completion control.
The group identification is introduced in the message descriptor structure (MQMD) sent with the message, when using an MQPUT or MQPUT1 call.
Every message in the group must have the MQMF_MSG_IN_GROUP flag but the last one, which has an MQMF_LAST_MSG_IN_GROUP flag instead. The order of the messages in the group is stored in the MsgSeqNumber field of the MQMD structure, which is generated automatically by the queue ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access