Administration message

The parameter field object needs to be set with field elements that need to be updated.

Figure 32. Updating the propeties of a queue in Java

/* Create an empty queue admin message and parameters field */
MQeQueueAdminMsg msg = new MQeQueueAdminMsg();
 
/** Prime message with who to reply to and a unique identifier 
 *  and set the name of the QueueManager and Queue 
 */
MQeFields params = new MQeFields();
 
 
/* Add a new description for the queue */
msg.putAscii(MQeQueueAdminMsg.Queue_Descrpition,"New Description");
/* Set the admin action to update the queue */
msg.update( parms );


© IBM Corporation 2002, 2003. All Rights Reserved