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,
This problem is really troubling us, because we can't do the job with the Scheduler MBean... Does anyone have an idea? Thanks!