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 ...

Get MQSeries Programming Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.