1 Reply Latest reply on Jun 28, 2006 10:12 AM by Armenio Pinto

    Scheduler and fixed intervals

    Armenio Pinto Newbie

      Hi there,

      I'm having some problems with the JBoss Scheduler MBean. I need the scheduled job to be executed at a fixed rate, i.e., the time interval between consecutive perform() method invocations is constant.

      The problem is that the next invocation occurs SchedulePeriod milliseconds after the end of the perform() method and not after the begin. So, I can't have a fixed rate, because the time that the perform() method takes to execute influences the next execution instance...

      I'm using JBoss 4.0.3SP1 and Sun JVM 1.5.0_06. Can anyone help me? Is it possible to achieve what I need with the Scheduler MBean, or do I have to use the Timer MBean?

      Thanks in advance,

      Arménio Pinto