Timer.getTimeRemaining() returns incorrect value
------------------------------------------------
Key: JBAS-4290
URL:
http://jira.jboss.com/jira/browse/JBAS-4290
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-4.0.4.GA
Reporter: David Boeren
Priority: Minor
From case:
"If I use a Timer for a SLSB and persist it, all
work correct if I start it.
The getNextTimeOut() give the correct time, the getRemaining() will show a value between
4990 and 4999 (intervall was 5000)
after a restart of the server the NextTimeout is in the past and the remaining is
negative.
Looks like that the service continue with the old time."
So, getRemaining() returns a negative value after a server restart.
--
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