Creating a queue manager called QM1
Create a queue manager, called QM1 by using the command-line interface. Queue managers are the main components in an IBM MQ messaging network.
Before you begin
You must have IBM MQ installed. If we do not, see Install using a silent installation for information about how to do so.
In this example, all names are typed in uppercase and because IBM MQ names are case-sensitive, you must type all names in uppercase too.
Procedure
- Open a command prompt as an administrator.
-
Create a queue manager with the name QM1 by typing the following command:
crtmqm QM1
When the system creates the queue manager, the following output is displayed:
C:\>crtmqm QM1 IBM MQ queue manager created. Creating or replacing default objects for QM1. Default objects statistics : 61 created. 0 replaced. 0 failed. Completing setup. Setup completed.
The queue manager is created, and is stopped. You must start the queue manager before we can administer it, and before we can read and write messages from its queues. -
Start the queue manager by entering the following command:
strmqm QM1
When the queue manager successfully starts, the following output is displayed:
C:\>strmqm QM1 IBM MQ queue manager 'QM1' starting. 5 log records accessed on queue manager 'QM1' during the log replay phase. Log replay for queue manager 'QM1' complete. Transaction manager state recovered for queue manager 'QM1'. IBM MQ queue manager 'QM1' started.
The queue manager is started.
What to do next
To create a queue, see Creating a queue called LQ1.