2 Replies Latest reply on Jul 16, 2002 4:57 AM by travers

    Reflection from within Message driven bean

    travers

      Hi, I am trying to invoke a method from within a message driven bean using reflection. Exactly the same code works from a test class, but as soon as it is in MDB and deployed to Jboss, I get a MethodNotFoundException on the getMethod :
      Method method = deviceDAO.getClass().getMethod(methodName,argTypes);

      I am 100% sure the method name and parameters are correct and the instance of the object I call the method on is valid.
      I am wondering if there is an issue around using Reflection with MDB in Jboss. I am using Jboss 2.4.4 and JDK 1.3.1