[jboss-jira] [JBoss JIRA] Commented: (JBAS-8232) java.ejb.TimerService/java.ejb.Timer cancel() does not stop timer
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Thu Jul 22 12:28:39 EDT 2010
[ https://jira.jboss.org/browse/JBAS-8232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12540606#action_12540606 ]
jaikiran pai commented on JBAS-8232:
------------------------------------
Jamie,
That indeed was a bug which I was able to reproduce in a testcase and fix it. I even have released a newer version of timerservice. The bug was a result of a combination of getTimers() and cancel() implementation. It should be fixed now. The testcase has been added (similar to what you have here) http://github.com/jbossejb3/jboss-ejb3-timerservice/tree/master/testsuite/src/test/java/org/jboss/ejb3/timerservice/integration/test/cancel/.
I have released the fix. Could you try the following steps and see if it works for you:
The following steps are against the JBoss AS latest snapshot (or the one you already have):
(Stop the server, if it's already running)
1) Take a backup of jboss-ejb3-timerservice-mk2.jar from JBOSS_HOME/server/< servername>/deploy folder
2) Remove timer jboss-ejb3-timerservice-mk2.jar from JBOSS_HOME/server/< servername>/deploy folder
3) Download the timerservice jar from here https://repository.jboss.org/nexus/content/repositories/releases/org/jboss/ejb3/timerservice/jboss-ejb3-timerservice-mk2/1.0.0-alpha-7/jboss-ejb3-timerservice-mk2-1.0.0-alpha-7.jar
4) Copy it to JBOSS_HOME/server/< servername>/deploy and rename it to jboss-ejb3-timerservice-mk2.jar
5) Start the server and run your app/tests.
This however, isn't yet in JBoss AS trunk and I am not sure whether it will make it to M4 (the code freeze for M4 was yesterday). I'll see if the window is still open for this fix.
> 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
More information about the jboss-jira
mailing list