In this example the description and of a store and forward queue and the maximum number of messages allowed on the queue are updated.
/* 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);