]
Dimitris Andreadis reopened JBAS-1690:
--------------------------------------
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: