Sun Java System Message Queue 3.7 UR1 Administration Guide

Shutting Down and Restarting a Broker

Shutting down the broker gracefully terminates the broker process. The broker stops accepting new connections and messages, completes delivery of existing messages, and terminates the broker process.

This is the syntax of the shutdown bkr subcommand:

imqcmd shutdown bkr [-b hostName:
portNumber]

The subcommand shuts down the default broker or a broker at the specified host and port.

The following command shuts down the broker running on ctrlsrv at port 1572:

imqcmd shutdown bkr -b ctrlsrv:1572 -u admin

Use the restart bkr subcommand to shut down and restart the broker. This is the syntax of the restart bkr subcommand:

imqcmd restart bkr [-b hostName:
portNumber]

The subcommand shuts down and restarts the default broker or a broker at the specified host and port, using the options specified when the broker first started. To choose different options, shut down the broker and then restart it, specifying the options you want.