-
Bug
-
Resolution: Done
-
Critical
-
JBossAS-4.0.4.GA
-
None
The ScheduleManager MBean uses fixed-rate execution on Java 1.4 and fixed-delay execution on Java 5.0
The reason for this is because the ScheduleManager makes use of the javax.management.timer.Timer class, when running with Java 1.4 we use our implementation of the timer but when running with Java 5.0 we use the JRE implementation.
To get fixed-rate execution (which has been our default till Java 5.0) the ScheduleManager should be using the method addNotification(String, String, Object, Date, long, long, boolean) with the final boolean set to true.
We should possibly make the decision to use fixed-delay or fixed-rate configurable incase people are already expecting fixed-dalay with Java 5.0.