Review Request for 6876135: Add PlatformLoggingMXBean to eliminate the dependency on JMX from logging

Mandy Chung Mandy.Chung at Sun.COM
Wed Oct 21 21:47:49 PDT 2009


Fixed 6876135: Add PlatformLoggingMXBean to eliminate the dependency on 
JMX from logging

Webrev at:
  http://cr.openjdk.java.net/~mchung/6876135/webrev.00/

A new java.lang.management.ManagementFactory.getPlatformMXBeans method 
was added to provide a generic way to obtain platform MXBeans in JDK 7 
(see 6610094).  All existing MXBean interfaces were modified to extend 
the new java.lang.management.PlatformManagedObject.  
java.util.logging.LoggingMXBean was one of them but that introduced a 
new dependency on JMX from logging.

To eliminate such dependency, we revert java.util.logging.LoggingMXBean 
change to JDK 6 version.  Add a new 
java.util.logging.PlatformLoggingMXBean interface to extend 
LoggingMXBean and java.lang.managmenet.PlatformManagedObject.  The 
PlatformLoggingMXBean will be part of the management module and not in 
the logging module.  Also the logging mxbean will not be created and 
registered in the platform MBeanServer if the logging module doesn't exist.

Thanks
Mandy





More information about the serviceability-dev mailing list