Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.activemq:query
Name
activemq:query, query — queries the for broker information on specific objects
Synopsis
activemq:query  [
					-QMBeanType=name
				] [
					-xQMBeanType=name
				] [
					--objname query
				] [
					--xobjname query
				] [
					--view 
					{
						attr
					...}
				] [
					--jmxurl JMXUrl
				] [
					--pid PID
				] [
					-jmxuser userName
				] [
					-jmxpassword password
				] [
					-jmxlocal
				] [
					--version
				] [[
						--help
					] |  [
						-h
					] |  [
						-?
					]]
Arguments
| Argument | Interpretation | 
|---|---|
-Q type=name | Adds to the search list the specific object type matched by the defined object identifier. | 
-xQ type=name | Removes from the search list the specific object type matched by the object identifier. | 
--objname query | Adds to the search list objects matched by the query similar. | 
--xobjname query | Removes from the search list objects matched by the query. | 
--view attr1,attr2,... | Selects the specific attribute of the object to view. By default, all attributes are displayed. | 
--jmxurl URL | Sets the JMX URL to connect to. | 
 --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 | 
Examples
JBossA-MQ:karaf@root>activemq:query
JBossA-MQ:karaf@root>activemq:query
TEST.FOO:
				JBossA-MQ:karaf@root>activemq:query -QTopic=TEST.FOO
JBossA-MQ:karaf@root>activemq:query -QTopic=TEST.FOO
host:
				JBossA-MQ:karaf@root>activemq:query -QBroker=*host
JBossA-MQ:karaf@root>activemq:query -QBroker=*host
JBossA-MQ:karaf@root>activemq:query -QQueue=*
JBossA-MQ:karaf@root>activemq:query -QQueue=*
.FOO except those that also begin with ActiveMQ.Advisory.:
				JBossA-MQ:karaf@root>activemq:query -QTopic=*.FOO -xQTopic=ActiveMQ.Advisory.*
JBossA-MQ:karaf@root>activemq:query -QTopic=*.FOO -xQTopic=ActiveMQ.Advisory.*