C API

The information for the queue is passed in via a structure to the API. Two important points are:

Figure 24. Create a local queue in C

MQeLocalQParms localQParms = LOCAL_Q_INIT_VAL;
 
localQParms.queueMaxQSize  = 200;
localQParms.queueExpiry    = 20000;
localQParms.queueDescription = hDescription;  
//this is an MQeStringHndl
 
localQParms.opFlags = QUEUE_MAX_Q_SIZE_OP | QUEUE_EXPIRY_OP | QUEUE_DESC_OP;
 
      rc = mqeAdministrator_LocalQueue_create(hAdministrator,
                                              &exceptBlk,
                                              hLocalQueueName,
                                              hLocalQMName,
                                              &localQParms);
   }


© IBM Corporation 2002, 2003. All Rights Reserved