Java™

First create the remote queue administration message.

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

Then prime the administration message, as explained in How to configure MQe objects.

Then set the queue queue manager name.

msg.setName(queueQMgrName, queueName);

params.putUnicode(descriptiorn);

/* set this to be a synchronous queue */
params.putByte(MQeQueueAdminMsg.Queue_Mode, 
               MQeQueueAdminMsg.Queue_Synchronous);

Now, 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.