protected void registerJmx(){
  try {
    if (pool.getJmxPool() != null) {
      MBeanServer mbs=ManagementFactory.getPlatformMBeanServer();
      mbs.registerMBean(pool.getJmxPool(),oname);
    }
  }
 catch (  Exception e) {
    log.error("Unable to register JDBC pool with JMX",e);
  }
}

protected void registerJmx ( ) { try { if ( pool . getJmxPool ( ) != null ) { MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; mbs . registerMBean ( pool . getJmxPool ( ) , oname ) ; } } catch ( Exception e ) { log . error ( "Unable to register JDBC pool with JMX" , e ) ; } }
registers the connectionpoolmbean under a unique name based on the objectname for the datasource
