import com.ibm.mqe.*; import com.ibm.mqe.registry.*; import examples.queuemanager.MQeQueueManagerUtils; try { MQeQueueManagerConfigure qmConfig; MQeFields parms = new MQeFields(); // initialize the parameters … // activate the configure object qmConfig = new MQeQueueManagerConfigure( parms, "MsgLog:qmName\\Queues\\" ); qmConfig.setDescription("a test queue manager"); qmConfig.setChnlAttributeRuleName("ChannelAttrRules"); qmConfig.defineQueueManager(); } catch (Exception e) { … }
At this point you can call close() and free() MQeQueueManagerConfigure and run the queue manager, however, it cannot do much because it has no queues. You cannot add queues using the administration interface, because the queue manager does not have an administration queue to service the administration messages.
The following sections show how to create queues and make the queue manager useful.