MQSeries Programming Patterns
by Mark Perry, Manesh Balachandran, Jorge Plata, Paul Solano, Phillip Thomas
6.7. Grouping
MQSeries Automation Classes for ActiveX allow a sequence of related messages to be included in, and sent as, a message group. Group context information is sent with each message to allow the message sequence to be preserved and made available to a receiving application. The group identification is defined in the message descriptor structure, which can be accessed through the MQMessage class.
Every message in the group must have the MQMF_MSG_IN_GROUP option except for the last one, which needs to have the MQMF_LAST_MSG_IN_GROUP option. The order of the messages that are part of the group is stored in the MsgSeqNumber field of the MQMD structure, which is generated automatically by the queue manager.
Additionally, the queue manager ...
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