https://github.com/wsargent/jmx-interceptor
Copy of JMX "virtual mbeans" example
https://github.com/wsargent/jmx-interceptor
Last synced: 4 months ago
JSON representation
Copy of JMX "virtual mbeans" example
- Host: GitHub
- URL: https://github.com/wsargent/jmx-interceptor
- Owner: wsargent
- Created: 2017-09-09T18:27:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T18:28:23.000Z (about 8 years ago)
- Last Synced: 2025-02-26T22:44:09.376Z (7 months ago)
- Language: Java
- Homepage: http://docs.oracle.com/cd/E19698-01/816-7609/6mdjrf85d/index.html
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
http://docs.oracle.com/cd/E19698-01/816-7609/6mdjrf85d/index.html
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 https://github.com/javaee/hk2-extra/tree/master/experiments/jmx
This code has been modified to work with JDK 1.8 with a default methods `MBeanServerInterceptor` and use `MBeanServer` as the base interface.