private void readEngineMbeans() { try { MbeansSource mbeansMB=new MbeansSource(); File mbeansF=new File( mbeansFile ); mbeansMB.setSource(mbeansF); Registry.getRegistry(null, null).registerComponent (mbeansMB, domain + ":type=MbeansFile", null); mbeansMB.load(); mbeansMB.init(); mbeansMB.setRegistry(Registry.getRegistry(null, null)); mbeans=mbeansMB.getMBeans(); } catch( Throwable t ) { log.error( "Error loading " + mbeansFile, t ); } }