code: public void start() throws Throwable
     {
        if (mbeanServer != null)
        {
           DynamicMBean dmb = JMX.createMBean(this, "JNDIViewer");
           objectName = new ObjectName(domain + ":name=JNDIViewer");
  
           mbeanServer.registerMBean(dmb, objectName);
        }
     }
docs: Start
  @exception Throwable If an error occurs