ObjectName objectName = new ObjectName("Catalina:type=StoreConfig" );
if (!mserver.isRegistered(objectName)) {
descriptor = this.getClass().getResourceAsStream(
"mbeans-descriptors.xml");
Registry registry = MBeanUtils.createRegistry();
registry.loadMetadata(descriptor);
mserver.registerMBean(getManagedBean(storeConfig), objectName);
}
} catch (Exception ex) {
log.error("createMBean register MBean", ex);