Re: mx4j and java 5 MBeans

Eamonn McManus <[email protected]>
Newsgroups gmane.comp.java.mx4j.user
Organization Sun Microsystems, Inc
Message-ID <[email protected]>
Ricardo,

You can use (e.g.) ManagementFactory.getClassLoadingMXBean() to get the ClassLoadingMXBean and then 
register that under the appropriate name in your MX4J MBeanServer.

However if you specify that property on the command line then the Platform MBean Server that you get 
back from ManagementFactory.getPlatformMBeanServer() should be an MX4J MBeanServer and it should 
contain all the java.lang.management MBeans.  Is that not what you're seeing?

Regards,
Éamonn McManus   JMX Spec Lead   http://weblogs.java.net/blog/emcmanus/


Ricardo Trindade wrote:
> Hi,
> 
>     I'm using mx4j in java 5 
> (-Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder), 
> and I'm wondering if there's a way to use the MBeans that come bundled 
> with Java 5 in mx4j.
> 
>     I've checked and they're in the sun packages, and appear to be 
> internally installed when the mbean server is launched. If that proves 
> impossible, would it make sense for mx4j to provide similar MBeans ?
> 
>     After all, we all want to monitor the memory usage and threads of 
> our apps, and replicating all that effort doesn't seem right. Does 
> anyone know of any project that is trying to build reusable mbeans ?
> 
> cheers,
> Ricardo
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Mx4j-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mx4j-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.