2 Replies Latest reply on Mar 3, 2006 11:15 AM by Joe Schmoe

    Need help with ServiceMBean

    Joe Schmoe Newbie

      I have a ServiceMBean class that I am trying to get working in the JMX console.

      I am using this method to try and be able to invoke some business logic from the console and return a result.

      /**
       * @jmx.managed-operation
       *
       * @param customerName
       * @param location
       */
       public String registerNewCustomer(String customerName, String location) {
       return "Registered";
       }


      But when I click the invode button, I get a reflection exception. Am I doing something wrong here? Ideally I would like to be able to set these parameters through the jmx console and then invoke the method.

      Thanks!