Create definitions for the default queues

MQeQueueManagerConfigure allows you to define the following four standard queues for the queue manager:
defineDefaultAdminQueue()
This administration queue is needed to allow the queue manager to respond to administration messages, for example to create new connection definitions and queues.
defineDefaultAdminReplyQueue()
This administration reply queue is a local queue, used by connections as the destination of reply messages generated by administration.
defineDefaultDeadLetterQueue()
This dead letter queue can be used, depending on the rules in force, to store messages that cannot be delivered to their correct destination.
defineDefaultSystemQueue()
This default local queue, SYSTEM.DEFAULT.LOCAL.QUEUE, has no special significance within MQe itself, but it is useful when MQe is used with MQ messaging because it exists on every MQ messaging queue manager.

All methods throw an exception if the queue already exists.

   import com.ibm.mqe.*;
   import com.ibm.mqe.registry.*;
   import examples.queuemanager.MQeQueueManagerUtils;
   try
   {
      MQeQueueManagerConfigure qmConfig;
      MQeFields parms = new MQeFields();
      // initialize the parameters
      …
      qmConfig = new MQeQueueManagerConfigure( parms, "MsgLog:qmName\\Queues\\" );
      qmConfig.setDescription("a test queue manager");
      qmconfig.defineDefaultAdminQueue();
      qmconfig.defineDefaultAdminReplyQueue();
      qmconfig.defineDefaultDeadLetterQueue();
      qmconfig.defineDefaultSystemQueue();
   }
   catch (Exception e)
   { … }

Parent topic: Creating a queue manager - step by step