[
http://jira.jboss.com/jira/browse/JBAS-3281?page=all ]
Dimitris Andreadis closed JBAS-3281.
------------------------------------
Resolution: Duplicate Issue
The 2 API methods supporting fixed-rate execution were implemented. Support for
fixed-delay execution was added, and this is now the default (used to be fixed-rate
before).
org.jboss.test.jbossmx.compliance.timer.PeriodTestCase shows both execution modes.
One thing I've noticed is the produced notifications have always fixed-rate timestamps
when run under jdk5, while we (jbossmx) correctly produce either fixed-rate or fixed-delay
timestamps. The overal time is correct in both cases, though.
One thing we need to check is the services that currently use JMX timers, to not assume a
fixed-rate execution, by default.
javax.management.timer.Timer should perform fixed-delay periodic
execution by default
-------------------------------------------------------------------------------------
Key: JBAS-3281
URL:
http://jira.jboss.com/jira/browse/JBAS-3281
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JMX, Scheduling/Timers
Affects Versions: JBossAS-4.0.4.GA, JBossAS-3.2.8.SP1
Environment: Java 1.4 (For Java 5.0 we use the implementation supplied with the
JRE)
Reporter: Darran Lofthouse
Assigned To: Dimitris Andreadis
Priority: Critical
Fix For: JBossAS-5.0.0.Beta, JBossAS-4.0.5.CR1, JBossAS-3.2.8.SP2
The implementation of javax.management.timer.Timer does not match the javadoc: -
http://java.sun.com/j2ee/1.4/docs/api/javax/management/timer/Timer.html
By default the timer should be using fixed-delay execution, our implementation is
defaulting to fixed-rate execution.
In addition to this to use fixed-rate execution you should use the method
addNotification(String, String, Object, Date, long, long, boolean), however we have not
implemented this method and we just throw a RuntimeException if it is invoked.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira