This content has been marked as final.
Show 3 replies
-
1. Re: Topic Statistics
javabuddha Sep 24, 2008 2:31 PM (in response to javabuddha)I figured out a way to get what I needed. I was indeed able to retrieve the ServerPeer MXBean and then get the "MessageStatistics" attribute from it.
Here's the code I used in case someone is looking for it:MBeanServerConnection server = (MBeanServerConnection) context.lookup("jmx/invoker/HttpAdaptor"); ObjectName serverPeerName = new ObjectName("jboss.messaging:service=ServerPeer"); ArrayList<MessageStatistics> attr = (ArrayList<MessageStatistics>) server.getAttribute(serverPeerName, "MessageStatistics");
-
2. Re: Topic Statistics
yannanlu Sep 30, 2008 10:43 AM (in response to javabuddha)I am having same issues. Once I migrated from JBossMQ to JBM, the stats on web-console have goneon both queues and topics. Does anyone know how to fix the web-console problem?
I am also thinking about writing a code to query the stats. Your code fragment is great. Is it possible for you to post a complete code ready to compile?
Thanks,
Yannan -
3. Re: Topic Statistics
timfox Oct 2, 2008 3:05 AM (in response to javabuddha)I don't really understand what your problem is.
JBM 1.4 should support all equivalent JMX functionality to JBoss MQ. See user guide for more info.