[jboss-jira] [JBoss JIRA] Commented: (JBAS-8656) Timers not removed from hypersonic database when application undeployed
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Tue Nov 23 03:20:59 EST 2010
[ https://jira.jboss.org/browse/JBAS-8656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564733#comment-12564733 ]
jaikiran pai commented on JBAS-8656:
------------------------------------
By default timers are persistent. Furthermore, your timer schedule is a recurring timer:
@Schedule(hour = "*", minute="*", second = "0")
so the timer is still active on redeploy.
> Timers not removed from hypersonic database when application undeployed
> -----------------------------------------------------------------------
>
> Key: JBAS-8656
> URL: https://jira.jboss.org/browse/JBAS-8656
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Scheduling/Timers
> Affects Versions: 6.0.0.M5, 6.0.0.CR1
> Environment: Default server config, debug enabled with "-Xdebug -Xrunjdwp:transport=dt_socket,address=28928,suspend=n,server=y"
> Windows, Linux
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
> Reporter: Vitaliy Abramov
> Assignee: Dimitris Andreadis
> Attachments: timer_test_ejb.jar
>
>
> TimerService started by Schedule annotation not working correctly.
> When application deployed timer added to hypersonic database (data/hipersonic/localDB), but when application undeployed these timer(s) not removed.
> If application deployed/undeployed few times multiple timer events will be fired on @Schedule.
> When server stops, data/hypersonic/localDB.script contains lines:
> INSERT INTO TIMEOUT_METHOD VALUES(314,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(315,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(316,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(317,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(318,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(319,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(320,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(321,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(322,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(323,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(324,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(325,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(326,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMEOUT_METHOD VALUES(327,'org.test.ScheduledBean','onTimer')
> INSERT INTO TIMER VALUES('36df3e13-09f2-4675-95cc-812222bd547b','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.001000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('65ab68c0-9915-4e43-92d7-e9c720c480a6','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.005000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('7046245c-5368-4296-a1b0-d3d1f7ec3040','aced0005740000','2010-11-23 00:00:30.000000000','2010-11-23 10:39:30.000000000','2010-11-23 10:38:29.982000000',0,'jboss.j2ee:ear=web_ear.ear,jar=ejb.jar,name=SingBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('78f0876b-c7c8-4499-9782-288ee3d818b4','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.013000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('9ab441e8-3c7e-4d4b-8f1d-599511ac1e0c','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.036000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('a3027bf3-21e3-4247-9731-5e82041aa6c7','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.001000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('adc3e406-6c26-4d39-9ede-f9a6ed4c27fe','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000',NULL,0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('d5e127e2-6aa1-48bb-bb10-935fb027eb2a','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000',NULL,0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('d87ef5e5-46d8-4e01-903f-721541cd7c21','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000',NULL,0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
> INSERT INTO TIMER VALUES('db2e211e-53dd-4b26-8fe8-40ee35184f7f','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.034000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list