1 Reply Latest reply on Apr 6, 2004 1:09 AM by Juha Lindfors

    dynamic registration of mbeans/services

    dsmith24456322 Newbie

      I'd like to be able to dynamically register MBeans (services) with JBoss after it has been started, just as though I'd included them in the JCML file at startup. Would I be able to do this safely by using the code that someone else had posted earlier in this forum?

      // get the JBoss MBean server
      MBeanServer xserver = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
      // register my bean

      Thanks much,