[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-05-04 Thread ajay662
Nobody else is experiencing this??

This is a major problem. I have a bunch of tasks scheduled to do nightly 
maintenance on my devices at 1pm every night. So I am using a recurring timer 
to schedule these. Everything works as expected if I keep my application 
running. But if have to re-start my application for any reason, all those 
timers get fired right away..

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4043313#4043313

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043313
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-04-20 Thread wolfc
How did you create the recurring timer?
Do you check whether there is already a timer active?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039144#4039144

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039144
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-04-20 Thread ajay662
I created the timer on a freshly installed jboss instance (so no prior timers) 
using the code below:

timer = messageDrivenCtx.getTimerService().createTimer(
  | job.getFirstSchedTime(), job.getRecurringInterval(), job);


Here recurring-interval is 1 hour (in milliseconds). After I got my first timer 
callback I restarted the server and saw the timer calback right away on 
restart.  Multiple restarts of the server showed the same behavior. 

This is 100% reproducible. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039422#4039422

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039422
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-04-19 Thread wolfc
Timers are persisted on undeployment and restored upon deployment.
http://jira.jboss.com/jira/browse/EJBTHREE-630

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038729#4038729

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038729
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-04-19 Thread ajay662
Exactly. So the persisted state should be that initial timer has been 
delivered. And hence when I re-start jboss initial timer should not be 
re-delivered.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038885#4038885

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038885
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user