code: public void registerMbeans() {
          ServerAdminMBean serverAdministrationBean = new ServerAdmin();
          try {
  
              mbeanServer.registerMBean(serverAdministrationBean,
                      JMXUtils.getObjectName(jmxConfig.getContextName(), "ServerAdmin"));
          } catch (InstanceAlreadyExistsException e) {
              throw new InitializationException("Could not initialize the MBean.!", e);
          } catch (MBeanRegistrationException e) {
              throw new InitializationException("Could not initialize the MBean.!", e);
          } catch (NotCompliantMBeanException e) {
              throw new InitializationException("Could not initialize the MBean.!", e);
          }
  
      }
docs: Register mbeans.