You may wish to disable or restrict access to MBeans in security-conscious environments.
Use the stopManagement() method of ManagementMBean. This method unregisters all of the Derby MBeans except ManagementMBean itself, so it does not turn access off completely.