[
https://jira.jboss.org/browse/JBAS-8232?page=com.atlassian.jira.plugin.sy...
]
Jamie Blake commented on JBAS-8232:
-----------------------------------
Jaikiran,
Yes the logs shows that the timer.cancel() is being called, yet it still keeps running.
here is an excerpt:
2010-07-21 11:46:11,740 INFO [com.xxx.test.TimerTestBean] (pool-17-thread-1) [A2]
TestTimerBean: handleTimeout() called
2010-07-21 11:46:16,740 INFO [com.xxx.test.TimerTestBean] (pool-17-thread-1) [A2]
TestTimerBean: handleTimeout() called
2010-07-21 11:46:17,498 INFO [com.xxx.test.TimerTestBean]
(WorkerThread#0[127.0.0.1:60718]) [A2] Canceling all existing timers:
2010-07-21 11:46:17,502 INFO [com.xxx.test.TimerTestBean]
(WorkerThread#0[127.0.0.1:60718]) [A2] Canceling timer: Test Timer
2010-07-21 11:46:21,740 INFO [com.xxx.test.TimerTestBean] (pool-17-thread-1) [A2]
TestTimerBean: handleTimeout() called
2010-07-21 11:46:26,740 INFO [com.xxx.test.TimerTestBean] (pool-17-thread-1) [A2]
TestTimerBean: handleTimeout() called
2010-07-21 11:46:31,739 INFO [com.xxx.test.TimerTestBean] (pool-17-thread-1) [A2]
TestTimerBean: handleTimeout() called
java.ejb.TimerService/java.ejb.Timer cancel() does not stop timer
-----------------------------------------------------------------
Key: JBAS-8232
URL:
https://jira.jboss.org/browse/JBAS-8232
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Scheduling/Timers
Affects Versions: 6.0.0.M4
Environment: Redhat linux 5.4 x86_64
jboss-6.0.0-SNAPSHOT-7-20-2010
jdk1.6.0_20_x86
Netbeans 6.9
Reporter: Jamie Blake
Assignee: jaikiran pai
Latest snapshot,for 7/20/2010, timer.cancel() does not stop timer.
Created simple Stateless SessionBean using the TimerService
Calling timer.cancel() does not stop timer process
// Timer still runs, it does not stop process
Only way to stop timer is to undeploy the app, delete the timer from the hypersonic
database, and restart jboss
This worked in Jboss 6.0.0 - M3.....
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira