[jboss-jira] [JBoss JIRA] Updated: (JBAS-1690) Timer.cancel in a transaction never calls TimerImpl.killTimer
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Thu Apr 12 13:19:10 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-1690?page=all ]
Dimitris Andreadis updated JBAS-1690:
-------------------------------------
Component/s: Scheduling/Timers
(was: EJB2)
> Timer.cancel in a transaction never calls TimerImpl.killTimer
> -------------------------------------------------------------
>
> Key: JBAS-1690
> URL: http://jira.jboss.com/jira/browse/JBAS-1690
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Scheduling/Timers
> Affects Versions: JBossAS-4.0.1 SP1
> Reporter: ?ystein Hansen
> Assigned To: Dimitris Andreadis
> Fix For: JBossAS-5.0.0.Beta1, JBossAS-4.0.4RC1
>
> Attachments: TimerTestBean.java, TimerTestClient.java
>
>
> Calling Timer.cancel in a Transaction does not delete the timer.
> The Timer is marked as CANCELED if transaction is commited, thus ejbTimeout is not called.
> However - the TimerImpl.TimerTask.run does nothing if Timer.isActive is false.
> Proposed solution:
> Either call killTimer in TimerTask.run, or treat CANCELED and EXPIRED the same way.
> See JBoss Forum for source code (SessionBean+UnitTest) to reproduce the problem
--
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
More information about the jboss-jira
mailing list