Java™

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

MQeStoreAndForwardQueueAdminMsg msg = 
   new MQeStoreAndForwardQueueAdminMsg (qMgrName, queueName);

MQeFields parms = new MQeFields();

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

primeAdminMsg(msg);

/*
 *  Add any characteristics of queue here, otherwise
 *  characteristics will be left to default values.
 */
parms.putAsciiArray(MQeStoreAndForwardQueueAdminMsg.Queue_QMgrNameList,
                    queueManagerNames);

/* Set the admin action to add a queue manager to a queue */

msg.putInt(MQeAdminMsg.Admin_Action, 
           MQeStoreAndForwardQueueAdminMsg.Action_AddQueueManager);

/* Put the fields object into the message */

msg.putFields(MQeAdminMsg.Admin_Parms, parms);

Terms of use | WebSphere software

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