C API

A list of aliases can be obtained from the C API by using the following API. Note that the Vector must be freed after use.

Figure 29. Obtaining a list of aliases in C

   if (MQERETURN_OK == rc) {
       MQeVectorHndl hVectorAliases;
       rc = mqeAdministrator_LocalQueue_listAliasNames(hAdministrator,
                                                       &exceptBlk,
                                                       hLocalQueueName,
                                                       hLocalQMName,
                                                       &hVectorAliases);
 
 
       /* process the aliases vector here */
 
       rc = mqeVector_free(hVectorAliases,&exceptBlk);
 
   }


© IBM Corporation 2002, 2003. All Rights Reserved