Disabling access to MBeans You may wish to disable or restrict access to MBeans in security-conscious environments. Java Management Extensions (JMX) technology JMXdisabling access

Use the stopManagement() method of ManagementMBean. This method unregisters all of the MBeans except ManagementMBean itself, so it does not turn access off completely.