C

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.

rc = mqeAdministrator_LocalQueue_addAlias(hAdministrator,
                                          &exceptBlk,
                                          hLocalQueueName,
                                          hLocalQMName,
                                          hAliasName);

if ( EC(&exceptBlk) == MQERETURN_NOTHING_TO_DO  
     && ERC(&exceptBlk) ==MQEREASON_DUPLICATE )
     {
         /* already has alias */
     }

Terms of use | WebSphere software

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