Create asynchronous

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 */

C

This is the C API to create a asynchronous queue. It is very similar to the Local Queue creation. Options for description, maximum size, and so on, can be set just as for the local queue.

 MQeRemoteAsyncQParms remoteAsyncQParms = REMOTE_ASYNC_Q_INIT_VAL;
 
 rc = mqeAdministrator_AsyncRemoteQueue_create(hAdministrator,
												&exceptBlk,BROKERTRADE_Q_NAME,
												SERVER_QM_NAME, &remoteAsyncQParms);


© IBM Corporation 2002. All Rights Reserved