Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes Custom Runtime JMX MBeans in JBoss? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Custom Runtime JMX MBeans in JBoss?" Watch "Custom Runtime JMX MBeans in JBoss?" New topic
Author

Custom Runtime JMX MBeans in JBoss?

William Stephens
Greenhorn

Joined: Dec 13, 2007
Posts: 16
All,

Back when I worked on WebLogic I created an MBean project that could be included with each service. This project was a runtime MBean that contained 12 counters, but could be extended. I then used the WebLogic Scripting Tool to read the counters and feed them into our enterprise metric system.

Does anyone have information about runtime MBeans on JBoss? It should be possible as jmx-console allows me to read the MBeans from our servers remotely and there are counters indicating the number of invocations for our services.

Ideally I need a solution that will work on JBoss and Tomcat but I'll do one at a time.

Thanks,
Bill S.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

What documentation have you looked at so far? I hate to post a link to something you have already seen.


JBoss In Action
William Stephens
Greenhorn

Joined: Dec 13, 2007
Posts: 16
To be specific:

I have to use JBoss 4.0.4.

I'm looking at the JBoss WIKI: http://www.jboss.org/community/docs/DOC-10543
Unfortunately, when I get deep enough I hit missing or empty pages: http://www.jboss.org/community/docs/DOC-12303

The JBoss 4.0.4 doc: http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch2.chapter.html
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

I think you are looking for a complete MBean example, how about this: http://www.jboss.org/community/docs/DOC-9712
William Stephens
Greenhorn

Joined: Dec 13, 2007
Posts: 16
Peter,

That's perfect! Thanks

Bill S.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Custom Runtime JMX MBeans in JBoss?
 
Similar Threads
This weeks giveaway "JMX in Action"
JMX and JDK 1.4.2
not getting JMX MBean Operation Result for Topic
Using JMX
Using JMX for mail checking and doing an action