This section applies to the C code base only.
Since administration is performed asynchronously, you have to wait for the reply to the administration message in order to determine if the action was successful. You therefore need to request a reply (the default is to send no reply) and specify where to send the reply message. The destination for the reply message should be a convenient local queue.
Remember that the administration code needs to send the reply message to the destination specified, and so may need connection definitions and listeners set up. It is easiest to get the administration reply message sent to the administration reply queue on the machine on which the administration is performed. The connectivity used to deliver the administration message to the target queue manager can then be used to retrieve the administration reply message from the target queue manager. This is the technique we use in the following examples.
Another useful task you can perform at this stage is to add an identifying field to the administration request message, so that you can easily identify the matching reply. You do this by adding a byte array field called MQe.Msg_CorrelID to the message. The administration code ensures that this field is copied into the reply message. If you wished you could then use this to correlate the administration action with the administration response.