HP Integrity NonStop H-Series User Manual

Page 41

Advertising
background image

Figure 7 Purge command

The purge command can also be executed with options to purge messages based on filters. The
options and their descriptions are shown in

Table 5

:

Table 5 Purge options

Description

Usage: {broker-name}.sh purge <options> <destination>

Deletes all the messages in queue FOO.BAR.

{broker-name}.sh purge FOO.BAR

Deletes all the messages in the destinations that:

{broker-name}.sh purge --msgsel

"JMSMessageID='*:10',JMSPriority>5"

QUEUE.*

matches QUEUE.*

has a JMSMessageID in the header field that matches
the wildcard *:10

has a JMSPriority field > 5 in the queue

NOTE:

To use wildcard queries, the field must be a string

and the query must be enclosed in ''. Use double quotes ""
for the entire message selector string.

Monitoring activities

41

Advertising
This manual is related to the following products: