LibraryLink ToToggle FramesPrintFeedback

Shutting Down a Broker

You can shut down a broker running in the default JMX context using the stop task, as follows:

activemq-admin stop broker1

[Note]Note

The stop task requires JMX to be enabled, which it is by default.

To shut down all the brokers running in the default JMX context (service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi), type the following:

activemq-admin stop --all

If the broker is running in a JMX context other than the default, you need to pass the --jmxurl option to the stop task, as follows:

activemq-admin stop --jmxurl service:jmx:rmi:///jndi/rmi://localhost:8050/jmxrmi