C

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);

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.