Update

Java/Administration message

//Set name of resource to be managed
try {
   MQeAdminMsg msg = (MQeAdminMsg) new MQeQueueManagerAdminMsg();
 
   msg.setName("ExampleQM");
 
   //Change the value of description
   parms = new MQeFields();
   Parms.putUnicode(MQeQueueManagerAdminMsg.QMgr_Description,
                    "Change description ...");
 
   //Set the action required and its parameters into the message
   msg.update(parms);
} catch (Exception e) {
   System.err.println("Failure ! " + e.toString());
}

C API

This shows how to update the description. Note that the queues and so on, can not be updated, via this API - they must be done via the specific Queue update methods.

Updates of the Description, ChannelTimeout and QueueStore are allowed. QueueStore changes will only take effect for any news queues that are created.

   MQeQueueManagerParms qmParms = QMGR_INIT_VAL;
   qmParms.opFlags | = QMGR_DESC_OP;
   qmParms.hDescription = hNewDescription;
   rc = mqeAdministrator_QueueManager_update(hAdministrator,
                                             &exceptBlk,
                                             &qmParms);


© IBM Corporation 2002. All Rights Reserved