Set queue manager properties

When you have activated MQeQueueManagerConfigure, but before you create the queue manager definition, you can set some or all of the following queue manager properties:
  • You can add a description to the queue manager with mqeQueueManagerConfigure_setDescription()
  • You can set a connection time-out value with mqeQueueManagerConfigure_setChannelTimeout()
  • You can set the name of the connection attribute rule with mqeQueueManagerConfigure_setChnlAttributeRuleName()
Call mqeQueueManagerConfigure_defineQueueManager( ) to create the queue manager definition. This creates a registry definition for the queue manager that includes any of the properties that you set previously.
   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.


Terms of use | WebSphere software

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