C API

Use the addAlias() method to add an alias name. Note that aliases have to be added one at a time. For other types of queues, such as Remote Queues, the format of the API remains the same, just change LocalQueue to, for example, SyncRemoteQueue.

Figure 28. Adding an alias to a queue in C

       rc = mqeAdministrator_LocalQueue_addAlias(hAdministrator,
                                                 &exceptBlk,
                                                 hLocalQueueName,
                                                 hLocalQMName,
                                                 hAliasName);
       if (   EC(&exceptBlk) == MQERETURN_NOTHING_TO_DO  
           && ERC(&exceptBlk) ==MQEREASON_DUPLICATE ) {
           /* already has alias */
       }


© IBM Corporation 2002, 2003. All Rights Reserved