Messinging broker command line interface tasks
This topic describes the 'zero broker' command line interface administrative tasks.
broker
- Description Usage
-
- zero broker list
- zero broker destroy <broker_name> [message store directory]
The 'list' command prints out the name and message store directory of each messaging broker created by the user on the local machine.
The 'destroy' command is the command line equivalent of setting
/config/messaging/broker/destroyCurrentMessageStoreto true, as described in the Broker configuration section. This command requires that the broker in question will be stopped first. The broker and any stored messages will be destroyed. This command should be used with care, and is not intended for use in production environments.The 'zero broker' command is only available from the root directory of an application that includes the
zero.messaging.brokercomponent. It will normally be issued from the root directory of the application containing the broker to be destroyed. It may sometimes be necessary to destroy a broker from a different directory, in which case (as an additional check) it is necessary to specify that broker's message store directory. This value is the broker application's/config/messaging/broker/messageStoreconfiguration parameter, as reported by the 'zero broker info' command line interface task.