1 Reply Latest reply on Jan 17, 2008 9:02 PM by genman

    mbean and timer

    robert-trudel

      hi

      i have a mbean and it have many method

      add
      less

      how to call add method every 2 second and less method every 6 second?

      i checked to implements Schedulable but i don't found a way to put a timer on a method.. only on the global bean...

      thanks

        • 1. Re: mbean and timer
          genman

          Don't implement the Schedulable interface if you want two different methods called.

          I would create two scheduler mbeans which call your mbean methods through JMX.