C API

Deletion of queue requires that the queue be empty of messages.

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

Figure 26. Deleting a queue in C

 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 */
    }
   }


© IBM Corporation 2002, 2003. All Rights Reserved