To pause any service other than the admin service (which cannot be paused), use the pause svc and resume svc subcommands.
This is the syntax of the pause svc subcommand:
imqcmd pause svc -n serviceName [-b hostName:portNumber]
The subcommand pauses the specified service running on the default broker or on a broker at the specified host and port. For example, the following command pauses the httpjms service running on the default broker.
imqcmd pause svc -n httpjms -u admin
Pausing a service has the following effects:
The broker stops accepting new client connections on the paused service. If a Message Queue client attempts to open a new connection, it will get an exception.
All the existing connections on the paused service are kept alive, but the broker suspends all message processing on such connections until the service is resumed. (For example, if a client attempts to send a message, the send method will block until the service is resumed.)
The message delivery state of any messages already received by the broker is maintained. (For example, transactions are not disrupted and message delivery will resume when the service is resumed.)
To resume a service, use the resume svc subcommand.
This is the syntax of the resume svc subcommand:
imqcmd resume svc -n serviceName[-b hostName:portNumber]