C

In the native codebase, an admin queue is created using the following API:

MQeAdminQParms params = ADMIN_Q_INIT_VAL;
rc = mqeAdministrator_AdminQueue_create(hAdmin, // handle to MQeAdministrator
											pExceptBlock, // handle to an exception block 
											hQueueName, // the name of the queue to be created
											hQueueQMgrName, // the name of the queue's 
																 //owning queue manager
											&params); // pointer to structure 
																 // for configuring the 
																 // queue of type MQeAdminQParms,
 
 

In particular, the constant string handle MQE_ADMIN_QUEUE_NAME can be used as the admin queue name. This is the equivalent of the constant MQe.Admin_Queue_Name in the Java codebase.

The params structure can be initialized to contain default values for all admin queue properties. The structure also contains an opFlags bit mask element that must be used to indicate which properties have been set to a value other than the default value. The above example accepts all of the default values, as specified using the ADMIN_Q_INIT_VAL constant.



© IBM Corporation 2002, 2003. All Rights Reserved