Skip to content
Copy of JMX "virtual mbeans" example
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

virtual mbeans JMX Interceptor

This is the "virtual mbeans" code example from OpenDMK. It displays the filesystem as a "virtual mbean" so that you can browse it from the jconsole without actually creating any mbeans.

The Oracle documentation from the Java Dynamic Management Kit 5.1 Tutorial is here:

Note that this project does NOT rely on any DMK code or libraries, but can be run right out of the box.

The original example used MBeanServerInterceptor, but for JDK 1.5 only the MBeanServer interface is required -- the MBeanServerInterceptor interface is basically there to tell you which methods can throw UnsupportedOperationExceptions.

The original DMK examples are lost to history. They are not available on the Oracl website, and I pulled the code from

This code has been modified to work with JDK 1.8 with a default methods MBeanServerInterceptor and use MBeanServer as the base interface.

You can’t perform that action at this time.