Java™

/* Create an empty store and forward queue admin message and parameters field */

MQeStoreAndForwardQueueAdminMsg msg =
   new MQeStoreAndForwardQueueAdminMsg ();

MQeFields parms = new MQeFields();

/* Prime message with who to reply to, and a unique identifier */

primeAdminMsg(msg);

/* Set name of queue to manage */

msg.setName(qMgrName, queueName);

/*
 * Add any characteristics of queue here, otherwise
 * characteristics will be left to default values
 */

parms.putUnicode(MQeQueueAdminMsg.Queue_Description, description);
parms.putInt(MQeQueueAdminMsg.Queue_MaxQSize,10);

/* Set the admin action to update */

msg.update(parms);

Terms of use | WebSphere software

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