8 Replies Latest reply on Sep 10, 2002 2:45 PM by Jeff Haynie

    getXXX methods on MBean interface don't work

    Jeff Haynie Newbie

      If you have a getXXX method on an MBean using the latest JBoss 3.0.2 codebase, they fail with:

      Cause: java.lang.NoSuchMethodException: Unable to locate method for: getFoo()]

      example interface:

      interface BarMBean extends ServiceMBean
      {
      public void getFoo ();
      }

      if i change it to this interface, it works....

      interface BarMBean extends ServiceMBean
      {
      public void foo ();
      }

      Looks like it assumes that anything with is/get/set is assumed to be an attribute only.