[jboss-user] [JBoss Messaging] New message: ""removeAllMessages" method of the queue mbean is not accessible programmatically via MBean"

Alexander Lengson do-not-reply at jboss.com
Tue Feb 9 11:00:01 EST 2010


User development,

A new message was posted in the thread ""removeAllMessages" method of the queue mbean is not accessible programmatically via MBean":

http://community.jboss.org/message/525128#525128

Author  : Alexander Lengson
Profile : http://community.jboss.org/people/sanches

Message:
--------------------------------------------------------------
Hello All,
 
There is "removeAllMessages" method in the JMX console for the mbeans from "http://localhost:8080/jmx-console/HtmlAdaptor?action=displayMBeans&filter=jboss.messaging.destination" group
I was trying to invoke it programmatically, but by some reason appropriate mbean does not provide such operation in runtime.
 
Giving that reference
MBeanInfo info
is the correct reference to the queue bean,
method
 MBeanOperationInfo[] ops = info.getOperations();
returns me an array which does not contain operation with name "removeAllMessages".
It does contain part of the operation from those listed in JMX console, but not all.
 
Is that intentional behavior and there is other way to invoke that method? Or is it bug actually?
 
JBoss 5.1.0.GA
 
Thank you,
Alex.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/525128#525128




More information about the jboss-user mailing list