4.2 Purge Example

The following sequence diagram illustrates a supporting server purging a queue on a remote queue manager on behalf of an MQMP application. It is closely related to the example in section 4.2 of [MS-MQMP] and represents an expansion of step 12 of that example. This example assumes that steps 1-11 of that example have been executed prior to the beginning of the following sequence diagram, and that steps 13 and 14 of that example will be executed after the end of the following sequence diagram.

Purging a queue

Figure 3: Purging a queue

In response to the MQMP application invoking the rpc_ACPurgeQueue method of [MS-MQMP], the supporting server invokes methods on the remote queue manager on the MQMP application's behalf:

  1. The supporting server calls RemoteQMPurgeQueue on the remote queue manager.

  2. The remote queue manager removes all messages from the queue and returns MQ_OK (0x00000000) to indicate success.