C

The API takes the same parameter structure that the other APIs (such as create) take.

To specify the elements that are of interest, set opFlags accordingly.

To get, for example, the queue maximum depth, expiry, and description, set opflags as follows:

MQeLocalQParms params = LOCAL_Q_INIT_VAL;

params.opflags = QUEUE_MAX_Q_SIZE_OP | QUEUE_EXPIRY_OP | QUEUE_DESC_OP;

rc = mqeAdministrator_LocalQueue_inquire(hAdministrator,
                                         &exceptBlk,
                                         hQueueName,
                                         hQueueMgrName,
                                         &params);
if (MQERETURN_OK == rc) {
   MQEINT64 queueExpiry = params.queueExpiry;
   MQEINT32 queueMaxSize = params.queueMaxQSize;
   MQeStringHndl queueDescription = params. hDescription;
}

Terms of use | WebSphere software

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