2 Replies Latest reply on Jul 21, 2004 7:18 PM by chuckharris

    ServiceMBean ServiceMBeanSupport?

    chuckharris

      I am moving from jboss3.2.2 to 3.2.5 and my mbeans are failing when building with the new jboss jars. I used to extend ServiceMBean in an interface and then implement the interface and extend ServiceMBeanSupport. Is ServiceMBeanSupport no longer used or did it move?

        • 1. Re: ServiceMBean ServiceMBeanSupport?
          chuckharris

          I am guessing that ServiceMBeanSupport is gone. I made changes to implement the new org.jboss.system.ServiceMBean and added:
          public void jbossInternalLifecycle(String p)
          {
          }

          public String getStateString()
          {
          return "";
          }

          public int getState()
          {
          return 1;
          }

          public void destroy()
          {
          }
          and changed startService to start and endService to end. I can see the mbean attributes pass from the -service.xml but the start is never called. Is this done differently now? What should the above methods look like?

          • 2. Re: ServiceMBean ServiceMBeanSupport?
            chuckharris

            Nevermind. I deleted the jar so ant couldn't find it.