Closed Mobe91 closed 10 years ago
We should make this configurable. Probably defaulting to the platform MBeanServer indeed. It should be configurable because of how the TCK wants to test for this. Probably should try to get rid of the tck package from within the implementation as well.
Started a thread on the subject on our dev-mailing list https://groups.google.com/forum/#!topic/ehcache-dev/rCvdLPBzYFw Not quite sure how we best fix this...
The spec says: "The platform MBeanServer is obtained using ManagementFactory.getPlatformMBeanServer()"
but the current enableManagement implementation uses registerObject which is implemented as follows
mBeanServer is a newly created MBeanServer and is not obtained using ManagementFactory.getPlatformMBeanServer().