You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by khandelwalanuj <kh...@gmail.com> on 2014/01/15 15:36:03 UTC
ActiveMQ admin command
Hi,
I am running "activemq-admin query" command to check broker related things.
I want to know that by running this command :
1. Does broker send the complete Mbean data and filtering is done after
that ?
OR
2. Broker only send data which is requested by the command ?
Like:
If i am running it to find "InactiveDurableTopicSubscribers". So Broker
itself does the filtering and only send me details related to
"InactiveDurableTopicSubscribers" ??
Thanks,
Anuj
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-admin-command-tp4676307.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ admin command
Posted by Christian Posta <ch...@gmail.com>.
try it out in a debugger :)
afaik, it will be all the mbeans
On Wed, Jan 22, 2014 at 11:20 PM, khandelwalanuj
<kh...@gmail.com> wrote:
> Hi,
>
> According to my understanding:
> When I run " *activemq-admin query --view InactiveDurableTopicSubscribers
> --jmxurl service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
> --jmxpassword activemq *
>
> where queryAddObjects will be null but queryViews will not be null.
>
> So *List addMBeans = JmxMBeansUtil.queryMBeans(createJmxConnection(),
> queryAddObjects, queryViews);
> *
>
> I think after this call What will be there in "addMbeans" ?
>
> Does it have only "InactiveDurableTopicSubscribers" ? If yes then what
> filtering will be done in
> context.printMBean(JmxMBeansUtil.filterMBeansView(addMBeans, queryViews));
>
>
> Thanks,
> Anuj
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-admin-command-tp4676307p4676695.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta
Re: ActiveMQ admin command
Posted by khandelwalanuj <kh...@gmail.com>.
Hi,
According to my understanding:
When I run " *activemq-admin query --view InactiveDurableTopicSubscribers
--jmxurl service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
--jmxpassword activemq *
where queryAddObjects will be null but queryViews will not be null.
So *List addMBeans = JmxMBeansUtil.queryMBeans(createJmxConnection(),
queryAddObjects, queryViews);
*
I think after this call What will be there in "addMbeans" ?
Does it have only "InactiveDurableTopicSubscribers" ? If yes then what
filtering will be done in
context.printMBean(JmxMBeansUtil.filterMBeansView(addMBeans, queryViews));
Thanks,
Anuj
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-admin-command-tp4676307p4676695.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ admin command
Posted by Christian Posta <ch...@gmail.com>.
According to this:
http://activemq.apache.org/maven/5.9.0/apidocs/org/apache/activemq/console/filter/MBeansObjectNameQueryFilter.html#queryMBeans(javax.management.ObjectName,%20java.lang.String)
the JMX querying (so broker side) is not supported.
The filtering happens at this line when it tries to print/display it:
https://github.com/apache/activemq/blob/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java#L128
On Wed, Jan 22, 2014 at 12:17 AM, khandelwalanuj
<kh...@gmail.com> wrote:
> I have checked the source code but still it is not clear to me that where is
> the filtering happening.
>
> I am using these 3 command:
>
> -- activemq-admin query --view *InactiveDurableTopicSubscribers *--jmxurl
> service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
> --jmxpassword activem
>
> -- activemq-admin query --view *TemporaryQueues *--jmxurl
> service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
> --jmxpassword activemq
>
> -- activemq-admin query *-QQueue=** --jmxurl
> service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
> --jmxpassword activemq
>
> Can you please tell that for each of them filtering is happening on client
> side ?
>
> Thanks,
> Anuj
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-admin-command-tp4676307p4676618.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta
Re: ActiveMQ admin command
Posted by khandelwalanuj <kh...@gmail.com>.
I have checked the source code but still it is not clear to me that where is
the filtering happening.
I am using these 3 command:
-- activemq-admin query --view *InactiveDurableTopicSubscribers *--jmxurl
service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
--jmxpassword activem
-- activemq-admin query --view *TemporaryQueues *--jmxurl
service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
--jmxpassword activemq
-- activemq-admin query *-QQueue=** --jmxurl
service:jmx:rmi:///jndi/rmi://amqbroker:8887/jmxrmi --jmxuser guest
--jmxpassword activemq
Can you please tell that for each of them filtering is happening on client
side ?
Thanks,
Anuj
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-admin-command-tp4676307p4676618.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ admin command
Posted by Gary Tully <ga...@gmail.com>.
most of the work is done client side at the moment. Peek at the source
for all the detail:
https://github.com/apache/activemq/blob/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java
On 21 January 2014 12:04, khandelwalanuj <kh...@gmail.com> wrote:
> Hey,
>
> Little bit confused here. Please help !!
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-admin-command-tp4676307p4676566.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
http://redhat.com
http://blog.garytully.com
Re: ActiveMQ admin command
Posted by khandelwalanuj <kh...@gmail.com>.
Hey,
Little bit confused here. Please help !!
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-admin-command-tp4676307p4676566.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.