Fixed #67 mbean UN-registration

pull/77/head
Brett Wooldridge 11 years ago
parent 6dd78cac93
commit 22f783067f

@ -53,7 +53,7 @@ public final class HikariMBeanElf
MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
ObjectName poolConfigName = new ObjectName("com.zaxxer.hikari:type=PoolConfig (" + configuration.getPoolName() + ")");
ObjectName poolName = new ObjectName("com.zaxxer.hikari.pool:type=Pool (" + configuration.getPoolName() + ")");
ObjectName poolName = new ObjectName("com.zaxxer.hikari:type=Pool (" + configuration.getPoolName() + ")");
if (!mBeanServer.isRegistered(poolConfigName))
{
mBeanServer.registerMBean(configuration, poolConfigName);

Loading…
Cancel
Save