C API

The information for the queue is passed in via a structure to the API. Two important points are:

MQeQueueManagerParms qmParams  = QMGR_INIT_VAL; 
MQeRegistryParms  regParams = REGISTRY_INIT_VAL;  
 
/* String parameters for the location of the msg store */
qmParams.hQueueStore = hQueueStore;      
 
/* Indicate what parts of the structure have been set */
qmParams.opFlags = QMGR_Q_STORE_OP;    
 
/* ... create the registry parameters - minium that are required */
regParams.hBaseLocationName  =  hRegistryDir;
 
rc = mqeAdministrator_QueueManager_create(hAdministrator,
                                          &exceptBlk,
                                          &hQueueManager,
                                          hLocalQMName,
                                          &qmParams,
                                          &regParams);


© IBM Corporation 2002, 2003. All Rights Reserved