activemq:purge
Name
activemq:purge, purge — purges messages from a destination
Synopsis
activemq:purge
[
--msgsel
{
msgsel
...}
] [
--pid PID
] [
--jmxurl JMXUrl
] [
-jmxuser userName
] [
-jmxpassword password
] [
-jmxlocal
] [
--version
] [[
--help
] | [
-h
] | [
-?
]] {
destName
}
Arguments
Option | Interpretation |
---|---|
--msgsel msgsel1,msgsel2,... | Purges messages matched by the message selector. See the section called “Message filters”. |
--jmxurl URL | Sets the JMX URL used to locate the broker. |
--pid PID | Set the pid to connect to (only on Sun JVM). |
--jmxuser user | Sets the JMX user, used for authentication. |
--jmxpassword password | Sets the JMX password, used for authentication. |
--jmxlocal | Specifies to use the local JMX server instead of a remote server |
--version | Displays the version information |
-h, -?, --help | Displays the online help for this command |
destName | The specified message destination(s) |
Examples
TEST.FOO
on a broker:
JBossA-MQ:karaf@root>
activemq:purge TEST.FOO
10
:
JBossA-MQ:karaf@root>
activemq:purge --msgsel JMSMessaageID='*:10' TEST.FOO
3
, enter:
JBossA-MQ:karaf@root>
activemq:purge --msgsel JMSPriority=3 TEST.FOO
JBossA-MQ:karaf@root>
activemq:purge --msgsel JMSMessaageID='*:10',JMSPriority=3 TEST.FOO