Java™

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

/* Create an empty queue admin message and parameters field */
MQeQueueAdminMsg msg = new MQeQueueAdminMsg();

/*  Prime the 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 );

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.