When you create a queue manager, you need to define the following attributes:
- Queue manager name
- Public or private registry
- Registry location
- Message store adapter
- Default queues
- AdminQ
- AdminReplyQ
- DeadLetterQ
- System.default.local.Q
You can also set other (optional) attributes at this time, including a
description, channel timeout, channel attribute rule name, and queue manager
rule, but these are not included in this walkthrough.
For more information about the creation and configuration of queue managers,
see Configuration by messages overview.
Creating QM1 using MQe_Script:
You can use the following
MQe_Script command to create a queue manager called QM1:
mqe_script_qm -create -qmname QM1
This
command creates a queue manager called QM1, with the following characteristics:
- Public registry
- A base location of C:\program files\mqe\java\mqe_script.
The default registry and queue directories are in subdirectories in this path
- Uses the default message store and saves the information to disk
- Contains 4 default queues
An ini file is also created so that the queue manager information is
saved and can be started again by passing the location of this file to an
appropriate method.