List aliases

Use the listAlias() method to list the aliases that you use.

Administration message

To get a list of Alias Names using Administration Messages, use the inquire action and specify a field of Queue_QAliasNameList in the parameter's fields object.

C API

You can obtain a list of aliases from the C API using the following API.

Note:
Free the vector after use.

Figure 24. 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. All Rights Reserved