On Windows systems, you modify configuration information using the properties pages for WebSphere MQ, accessed from the WebSphere MQ Services snap-in. On UNIX systems, you modify the information by editing the mqs.ini configuration file.
Use the All Queue Managers WebSphere MQ properties page, or the AllQueueManagers stanza in the mqs.ini file to specify the following information about all queue managers.
If you change the default prefix for the queue manager, replicate the directory structure that was created at installation time (see Figure 41).
In particular, you must create the qmgrs structure. Stop WebSphere MQ before changing the default prefix, and restart WebSphere MQ only after you have moved the structures to the new location and changed the default prefix.
Note: | Do not delete the /var/mqm/qmgrs/@SYSTEM directory. |
As an alternative to changing the default prefix, you can use the environment variable MQSPREFIX to override the DefaultPrefix for the crtmqm command.
Use the ConvEBCDICNewline attribute to specify how WebSphere MQ is to convert the EBCDIC NL character into ASCII format.
NL_TO_LF is the default.
The effect of this type of conversion might vary from platform to platform and from language to language; even on the same platform, the behavior might vary if you use different CCSIDs.
Possible ISO CCSIDs are shown in Table 5.
Table 5. List of possible ISO CCSIDs
CCSID | Code Set |
---|---|
819 | ISO8859-1 |
912 | ISO8859-2 |
915 | ISO8859-5 |
1089 | ISO8859-6 |
813 | ISO8859-7 |
916 | ISO8859-8 |
920 | ISO8859-9 |
1051 | roman8 |
If the ASCII CCSID is not an ISO subset, ConvEBCDICNewline defaults to NL_TO_LF.
For more information about data conversion, see the WebSphere MQ Application Programming Guide.
Use the All Queue Managers WebSphere MQ properties page, or the ClientExitPath stanza in the mqs.ini file to specify the default path for location of channel exits on the client.
On UNIX systems, use the DefaultQueueManager stanza to specify the default queue manager for the node. On Windows systems, change the default queue manager by checking the Make this the default queue manager box on the General page of the properties for that queue manager.
On UNIX systems, use the ExitProperties stanza to specify configuration options used by queue manager exit programs. On Windows systems, set these options on the Exits page of the properties for each individual queue manager.
If a problem arises with the user-written CLWL exit when running in SAFE mode, the following happens:
The integrity of the queue manager is preserved.
Note: | Running the CLWL exit in a separate process can affect performance. |
Specifying this option improves performance by avoiding the overheads associated with running in SAFE mode, but does so at the expense of queue manager integrity. You should only run the CLWL exit in FAST mode if you are convinced that there are no problems with your CLWL exit, and you are particularly concerned about performance.
If a problem arises when the CLWL exit is running in FAST mode, the queue manager will fail and you run the risk of the integrity of the queue manager being compromised.
Use the Default Log Settings WebSphere MQ properties page on Windows systems, or the LogDefaults stanza in the mqs.ini file on UNIX systems, to specify information about log defaults for all queue managers. The log attributes are used as default values when you create a queue manager, but can be overridden if you specify the log attributes on the crtmqm command. See crtmqm (create queue manager) for details of this command.
Once a queue manager has been created, the log attributes for that queue manager are taken from the settings described in Queue manager logs.
The default prefix (specified in the All Queue Managers information) and log path specified for the particular queue manager allow the queue manager and its log to be on different physical drives. This is the recommended method, although by default they are on the same drive.
For information about calculating log sizes, see "Calculating the size of the log".
Note: | The limits given in the following parameter list are limits set by WebSphere MQ. Operating system limits might reduce the maximum possible log size. |
The minimum number of primary log files you can have is 2 and the maximum is 62. The default is 3.
The total number of primary and secondary log files must not exceed 63, and must not be less than 3.
The minimum number of secondary log files is 1 and the maximum is 61. The default number is 2.
The total number of primary and secondary log files must not exceed 63, and must not be less than 3.
For WebSphere MQ for Windows, the default number of log file pages is 256, giving a log file size of 1 MB. The minimum number of log file pages is 32 and the maximum is 16 384.
For WebSphere MQ for UNIX systems, the default number of log file pages is 1024, giving a log file size of 4 MB. The minimum number of log file pages is 64 and the maximum is 16 384.
See "Circular logging" for a fuller explanation of circular logging.
See "Linear logging" for a fuller explanation of linear logging.
If you want to change the default,
you can either edit the LogType attribute, or specify linear
logging using the crtmqm command. You cannot change the
logging method after a queue manager has been created.
The minimum number of buffer pages is 18 and the maximum is 512.
Larger buffers lead to higher throughput, especially for larger
messages.
If you specify 0 (the default), the queue manager selects the size.
In WebSphere MQ V5.3 this is 64 (256 KB).
If you specify a number between 1 and 17, the queue manager defaults to 18
(72 KB). If you specify a number between 18 and 512, the queue manager
uses the number specified to set the memory allocated.
The value is examined when the queue
manager is created or started, and might be increased or decreased at either
of these times. However, a change in the value is not effective until
the queue manager is restarted.
The default is:
Alternatively, you can specify the name of a directory on the crtmqm command using the -ld flag. When a queue manager is created, a directory is also created under the queue manager directory, and this is used to hold the log files. The name of this directory is based on the queue manager name. This ensures that the log file path is unique, and also that it conforms to any limitations on directory name lengths.
If you do not specify -ld on the crtmqm command, the value of the LogDefaultPath attribute in the mqs.ini file is used.
The queue manager name is appended to the directory name to ensure that multiple queue managers use different log directories.
When the queue manager is created, a LogPath value is created in the log attributes in the configuration information, giving the complete directory name for the queue manager's log. This value is used to locate the log when the queue manager is started or deleted.
Windows 2000 supports the Advanced Configuration and Power Interface (ACPI) standard. This enables Windows 2000 users with ACPI enabled hardware to stop and restart channels when the system enters and resumes from suspend mode. Use the ACPI tab to tell WebSphere MQ how to behave when the system receives a suspend request.
The following table outlines the effect of each combination of these
parameters:
DoDialog | DenySuspend | CheckChannels Running | Action |
N | N | N | Accept the suspend request. |
N | N | Y | Accept the suspend request. |
N | Y | N | Deny the suspend request. |
N | Y | Y | If any channels are running deny the suspend request; if not accept the request. |
Y | N | N | Display the dialog (accept the suspend request). This is the default. |
Y | N | Y | If no channels are running accept the suspend request; if they are display the dialog (accept the request). See note. |
Y | Y | N | Display the dialog (deny the suspend request). See note following this table. |
Y | Y | Y | If no channels are running accept the suspend request; if they are display the dialog (deny the request). See note following this table. |
Note: | In cases where the action is to display the dialog, if the dialog cannot be displayed (for example because your laptop lid is closed), the DenySuspend option is used to determine whether the suspend request is accepted or denied. |
Use the API Exits WebSphere MQ properties page, or the ApiExitTemplate and ApiExitCommon stanza in the mqs.ini file to identify API exit routines for all queue managers. On Windows systems, you can also use the amqmdain command to change the Registry entries for API exits. (To identify API exit routines for individual queue managers, you use the ApiExitLocal stanza, as described in API exits.)
For a complete description of the attributes for these stanzas, see Configuring API exits.
On UNIX systems, there is one QueueManager stanza for every queue manager. These attributes specify the queue manager name, and the name of the directory containing the files associated with that queue manager. The name of the directory is based on the queue manager name, but is transformed if the queue manager name is not a valid file name. (See Understanding WebSphere MQ file names for more information about name transformation.)
On Windows systems, this information is held in the Registry. You cannot use the WebSphere MQ Services snap-in to change it.