1 Reply Latest reply on Apr 4, 2005 5:45 AM by raja05

    JMX method level ??

      Hello,

      Im a jboss developer an I actually testing JMX architecture in a real bussiness app. I have a doubt related with JMX, can I manage with MBEANS directly java methods (example in a EJB) ? Concretely i would like test one java class with a lot of fat methods, therefore I interested in timing all the methods WITHOUT changing code...

      Best Regards

      David

        • 1. Re: JMX method level ??
          raja05

          You should be able to do this from the MBean. MBean just manages whatever resource that you need to manage. IF you want to manage a EJB, do the lookup for that EJB in ur MBean create/start methods and expose the other methods that you want to manage. These methods can inturn call the actual EJB Resource and do whatever.
          IF you just want to time the methods, JBoss provides a EJB Interceptor called LogInterceptor that you could just add to your interceptor stack. That will automatically determine the time taken to run every method. Check out standardjboss.xml for LogInterceptor.