private void registerJMX() throws Exception {
  String jmxObjectName=resources.getJMXObjectName();
  MBeanServer mbs=ManagementFactory.getPlatformMBeanServer();
  jmxBean=new QuartzSchedulerMBeanImpl(this);
  mbs.registerMBean(jmxBean,new ObjectName(jmxObjectName));
}

private void registerJMX ( ) throws Exception { String jmxObjectName = resources . getJMXObjectName ( ) ; MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; jmxBean = new QuartzSchedulerMBeanImpl ( this ) ; mbs . registerMBean ( jmxBean , new ObjectName ( jmxObjectName ) ) ; }
register the scheduler in the local mbeanserver .
