Technical data

Setting Up and Maintaining Queues
14.4 Creating and Starting Queues
14.4.1.2 Activating an Autostart Queue
You must activate an autostart queue in one of the following ways:
Use the /START qualifier in the INITIALIZE/QUEUE command used to
create the queue, as follows:
INITIALIZE/QUEUE/START/AUTOSTART_ON[/qualiers,...] queue-name
Enter START/QUEUE after you create the queue, as follows:
START/QUEUE[/qualiers,...] queue-name
Once an autostart queue is activated, it remains active until the queue is stopped
with STOP/QUEUE/NEXT or STOP/QUEUE/RESET. Shutting down a node does
not deactivate autostart queues on the node.
How to Start a Deactivated Queue
To start an autostart queue that has been deactivated by STOP/QUEUE/NEXT or
STOP/QUEUE/RESET, enter START/QUEUE. The queue is then automatically
started by the queue manager either:
Immediately if a node on which the queue can run is enabled for autostart
As soon as a node on which the queue can run is enabled for autostart
14.4.1.3 Enabling an Autostart Queue
You must enable autostart on a node to start autostart queues. You can do this
either before or after you create an autostart queue. Perform the following steps
to enable autostart:
1. For each node on which you want autostart queues to run (including those to
which the queues can later fail over), enter the following command:
$ ENABLE AUTOSTART/QUEUES
Enabling autostart on a node notifies the queue manager to automatically
perform the following tasks:
Start all active and valid autostart queues on the node
Start any active autostart queue that fails over to the node
By default, the command affects the node from which it is entered. Specify
the /ON_NODE qualifier to enable autostart on a different node.
Note
The ENABLE AUTOSTART/QUEUES command starts only valid, active
autostart queues capable of running on a node. If an autostart queue
does not start when you enter this command, the queue might not be
active for autostart. You must activate autostart queues, as explained in
Section 14.4.1.2.
2. Add the ENABLE AUTOSTART/QUEUES command to your startup command
procedure on each node that is to run autostart queues to ensure that
autostart is enabled each time the node reboots.
Setting Up and Maintaining Queues 1417