-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.0.1 SP1
-
None
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
- relates to
-
JBAS-1091 Allow ejb timers to persist across server restarts
- Closed