Starting a WebSphere MQ queue manager as a Windows service

Before you start:

You must complete the following task:
  • Stop the queue manager for the WebSphere Event Broker component, using the endmqm command or WebSphere MQ Services.

When you start the Configuration Manager, a broker, or User Name Server, the mqsistart command starts the associated queue manager if it is not already running. When you start any of these WebSphere Event Broker components on Windows, they start as a service on Windows, but the associated queue manager does not. You can change the properties of the queue manager service to set startup type to automatic to enable the queue manager to run as a Windows service.

This change ensures that the operation of the queue manager is independent of the logged-on status of the user that starts theWebSphere Event Broker component.

To start a WebSphere MQ queue manager as a Windows service.

  1. Click Start > Programs > IBM > IBM WebSphere MQ > WebSphere MQ Services.
  2. Right-click the queue manager and select Properties, and the General tab.
  3. Change the Startup Type to Automatic.
  4. This setting ensures that the queue manager is started whenever the WebSphere MQ Service (a Windows service) is started.
  5. You are also recommended to change the properties of the WebSphere MQ Services service by updating its Startup Type to Automatic using the Control Panel. This setting starts WebSphere MQ Services when Windows itself starts. This isolates the operation of the WebSphere MQ Services service from any logged on user.
  6. Restart the queue manager for the WebSphere Event Broker component using the strmqm command or WebSphere MQ Services. Do this before you start the component using the mqsistart command.

The changes to the queue manager's startup type take effect when you restart Windows.

Related tasks
Starting and stopping a broker
Starting and stopping a Configuration Manager
Starting and stopping the User Name Server
Related reference
mqsistart command