Owner manual

Table 3 Browse options (continued)
Description
Usage: {broker-name}.sh browse <options>
<destination>
Prints the message header, custom message header, and
message body of all messages in the queue or topic, using
the user name and password queried.
{broker-name}.sh browse --user <Username>
--password <Password> <destination>
Prints the message header, custom message header, and
message body of all messages in the queue or topic, using
{broker-name}.sh browse --user <Username>
--password <Password> --factory
the specified user name,
rg.apache.activemq.ActiveMQConnectionFactory
org.apache.activemq.AMQFactorySubClass to create
--passwordFactory
JMS connections, and
org.apache.activemq.AMQPasswordFactory
<destination>
org.apache.activemq.console.command.
DefaultPasswordFactory to turn the specified password
into the password to be used.
Querying a broker
In NSMQ, you can use the query command to get information about a broker. Querying a broker
displays the broker component's attributes and statistics.
To query a broker:
1. Log on to NSMQ.
2. Go to the <NSMQ-Installation-folder>/<broker_name>/bin directory.
This folder contains the <broker_name>.sh script.
3. Run the command:
<broker_name>.sh query
This command displays the broker component's attributes and statistics.
Following is an example of the query command:
38 Managing NSMQ