3.3.5.1 Preparing a Change Notification Message Version 0x02

The queue manager MUST create a Change Notification Message (section 2.2.4) containing a Notification Body (section 2.2.5).

The Notification Body MUST be set to a Unicode string in the format specified by the ABNF rule in section 2.2.5. The Event token MUST contain 1 to indicate that a queue object was created; or 2 to indicate that a queue object was changed; or 3 to indicate that a queue object was deleted; or 4 to indicate that a machine object was changed.<10> The ObjectGuid token MUST contain the GUID of the queue or the machine object that was changed. The DomainController token MUST contain the directory service name where the queue or a machine object was changed.

The Change Notification Message MUST be created as follows: The Version field MUST be set to 0x02. The NumberOfUpdateNotifications field MUST be set to 0x01 to indicate that there is only one update notification in the notification message. A queue manager MUST send only one notification message at a time. The Data field MUST be filled with the Notification Body instance created as specified in this section.

Finally, the Change Notification Message MUST be included within a Message ([MS-MQDMPR] section 3.1.1.12) ADM element instance and MUST be sent through MSMQ to the destination queue manager, as specified in section 3.3.5.3.