Java™

MQeRemoteQueueAdminMsg msg = new MQeRemoteQueueAdminMsg();
MQeFields params = new MQeFields();

/* Prime the admin message */
 
msg.setName(queueQMgrName, queueName);

params.putUnicode(description);

/* set this to be an asynchronous queue */
params.putByte(MQeQueueAdminMsg.Queue_Mode, 
               MQeQueueAdminMsg.Queue_Asynchronous);

/*
 * Assuming that MsgLog is an established Alias,
 * set the QueueStore location
 */
params.putAscci(MQeQueueAdminMsg.Queue_FileDesc,
                "MsgLog:c:\queuestore");

/* Set the administration action to create the queue */
msg.create(params);

/* send the message */

Terms of use | WebSphere software

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