Initialization and configuration files


Overview

There are two configuration files: one applies to the machine, the other applies to an individual queue manager.

 

WebSphere MQ configuration file

This holds information relevant to all of the queue managers on the WebSphere MQ system. The file is called mqs.ini.

 

Queue manager configuration file

The queue manager configuration file holds configuration information relating to one particular queue manager. The file is called qm.ini.

It is created during queue manager creation and may hold configuration information relevant to any aspect of the queue manager. Information held in the file includes details of how the configuration of the log differs from the default in WebSphere MQ configuration file.

The queue manager configuration file is held in the root of the directory tree occupied by the queue manager.

/var/mqm/qmgrs/QMNAME/qm.ini"

An excerpt of a qm.ini file follows. It specifies that the TCP/IP listener is to listen on port 2500, the maximum number of current channels is to be 200 and the maximum number of active channels is to be 100.

     TCP:
       Port=2500
     CHANNELS:
       MaxChannels=200
       MaxActiveChannels=100

In MQSeries V5.2 and WebSphere MQ, you can specify a range of TCP/IP ports to be used by an outbound channel. One method is to use the qm.ini file to specify the start and end of a range of port values. The example below shows a qm.ini file specifying a range of channels:

     TCP:
       StrPort=2500
       EndPort=3000
     CHANNELS:
       MaxChannels=200
       MaxActiveChannels=100

If you specify a value for StrPort or EndPort then specify a value for both. The value of EndPort must always be greater than the value of StrPort.

The channel tries to use each of the port values in the range specified. When the connection is successful, the port value is the port that the channel then uses.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.