[jboss-jira] [JBoss JIRA] (AS7-3630) Method createTimer(Date date, Serializable info) creates timer which is invoked even the date is in past
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Mon Feb 6 18:23:48 EST 2012
[ https://issues.jboss.org/browse/AS7-3630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664647#comment-12664647 ]
Stuart Douglas commented on AS7-3630:
-------------------------------------
The problem with disallowing this is that you can run into situations like:
- client calculates date a small amount of time in the future
- JVM pauses (e.g. GC pause, heavy machine load)
- By the time createTimer is called date is now in the past, and timer is never invoked.
Not sure how best to avoid this, maybe some kind of threshold.
> Method createTimer(Date date, Serializable info) creates timer which is invoked even the date is in past
> --------------------------------------------------------------------------------------------------------
>
> Key: AS7-3630
> URL: https://issues.jboss.org/browse/AS7-3630
> Project: Application Server 7
> Issue Type: Bug
> Components: EJB
> Affects Versions: 7.1.0.CR1b
> Reporter: Ondřej Chaloupka
> Assignee: Stuart Douglas
> Priority: Minor
>
> In case that I used constructor createTimer(Date date, Serializable info) I set a date which time was in past the timer was created and timeout method was invoked.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list