Create synchronous

First create the remote queue administration message.

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

Then prime the administration message, as explained in Administration using administration messages. 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 */

C

This is the C API to create a synchronous 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.

 MQeRemoteSyncQParms remoteSyncQParms = REMOTE_SYNC_Q_INIT_VAL;
 
      rc = mqeAdministrator_SyncRemoteQueue_create(hAdministrator,
																			&exceptBlk,
																			hQueueName,
																			hServerName,
																			&remoteSyncQParms);


© IBM Corporation 2002. All Rights Reserved