beautypg.com

Querying a broker – HP Integrity NonStop H-Series User Manual

Page 38

background image

Table 3 Browse options (continued)

Description

Usage: {broker-name}.sh browse

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

--password

Prints the message header, custom message header, and
message body of all messages in the queue or topic, using

{broker-name}.sh browse --user

--password --factory

the specified user name,

rg.apache.activemq.ActiveMQConnectionFactory

org.apache.activemq.AMQFactorySubClass

to create

--passwordFactory

JMS connections, and

org.apache.activemq.AMQPasswordFactory

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:

.sh query

This command displays the broker component's attributes and statistics.

Following is an example of the query command:

38

Managing NSMQ

This manual is related to the following products: