C

The deletion of a queue requires that the queue be empty of messages.

Note that there is no parameter structure here – just the QueueName and QueueManager name.

rc = mqeAdministrator_LocalQueue_delete(hAdministrator,
                                        &exceptBlk,
                                        hLocalQueueName,
                                        hLocalQMName);

if ( EC(&exceptBlk) == MQERETURN_QUEUE_ERROR  
     && ERC(&exceptBlk) == MQEREASON_QMGR_QUEUE_NOT_EMPTY)
   {
      /* queue not empty - take appropriate actions */
   }

Terms of use | WebSphere software

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