private HikariPoolMXBean initPoolMbeans(){
  MBeanServer mBeanServer=ManagementFactory.getPlatformMBeanServer();
  ObjectName poolName=null;
  try {
    poolName=new ObjectName("com.zaxxer.hikari:type=Pool (" + "db-pool-" + connConfig.getConnId() + "-"+ connConfig.getDbLogin()+ ")");
  }
 catch (  MalformedObjectNameException e) {
    log.error("Unable to setup mBean monitoring for pool.",e);
  }
  return JMX.newMBeanProxy(mBeanServer,poolName,HikariPoolMXBean.class);
}

private HikariPoolMXBean initPoolMbeans ( ) { MBeanServer mBeanServer = ManagementFactory . getPlatformMBeanServer ( ) ; ObjectName poolName = null ; try { poolName = new ObjectName ( "com.zaxxer.hikari:type=Pool (" + "db-pool-" + connConfig . getConnId ( ) + "-" + connConfig . getDbLogin ( ) + ")" ) ; } catch ( MalformedObjectNameException e ) { log . error ( "Unable to setup mBean monitoring for pool." , e ) ; } return JMX . newMBeanProxy ( mBeanServer , poolName , HikariPoolMXBean . class ) ; }
setup jmx client . this is only used for trace logging .
