Better organisation of the JMX hierarchy tree

master
David BRASSELY 2014-02-06 15:55:53 +01:00
parent e870cf79d4
commit 05a720a7db
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ public class TomcatDataSourcePoolFactory implements DataSourcePoolFactory {
MBeanServer mBeanServer = java.lang.management.ManagementFactory.getPlatformMBeanServer();
mBeanServer.registerMBean(ds.getPool().getJmxPool(), new ObjectName("net.open-esb.standalone",
"datasources", ds.getName()));
String mBeanName = "net.open-esb.standalone:type=DataSources,name=" + ds.getName();
mBeanServer.registerMBean(ds.getPool().getJmxPool(), new ObjectName(mBeanName));
} catch (Exception e) {
e.printStackTrace();
}