-
1. Re: Support for javax.management.j2ee.statistics.Stats on JO
mazz May 5, 2009 3:49 PM (in response to rafaelri)you can look at the hibernate example - hibernate plugin gets the complex hibernate Statistics object and returns data for an operation. you can look at its metadata and the code to see how they translate the complex object to the Jopr object:
https://anonsvn.jboss.org/repos/jopr/trunk/modules/plugins/hibernate/src/main/resources/META-INF/rhq-plugin.xml
https://anonsvn.jboss.org/repos/jopr/trunk/modules/plugins/hibernate/src/main/java/org/rhq/plugins/hibernate/StatisticsComponent.java -
2. Re: Support for javax.management.j2ee.statistics.Stats on JO
rafaelri May 8, 2009 3:29 PM (in response to rafaelri)Hi mazz!
I looked over the Hibernate example and did a rather limited test over here and it worked just fine. But then one thing came to my mind: why not have native support on JMX component for Statistics Objects since they are part of J2EE Management JSR (JSR-77) ?
I think we could extend the property field of the metric tag to have a notation like an array where an Statistics object property would be threated like: Stats[ProcessCpuUsage].
By the way, I am willing to help with this implementation if you guys agree with this new feature...
regards... -
3. Re: Support for javax.management.j2ee.statistics.Stats on JO
mazz May 8, 2009 4:03 PM (in response to rafaelri)The JMX component is very generic, its used to also manage/monitor J2SE apps. So it wouldn't be put directly in the jmx plugin.
It would be best to do something along the same lines as the Statistics component does for hibernate, except we would have a JBossJ2EEStatistics component in the jboss plugin. I haven't looked to see what kinds of service resources they would represent.
Or we could maybe put it in a J2EE plugin which extends the JBoss plugin (kinda like what the RHQ Server plugin does).
See what you can come up with and let us know.