-
15. Re: Scheduler Jboss
petr5250 Sep 3, 2006 5:52 PM (in response to acardeiradias)"danj" wrote:
"schrouf" wrote:
Up to my knowledge it has always been "time from finish until next start".
Strange. We have a nightly job that takes somewhere between 8 s and 50 min. We have configured it with SchedulePeriod = 24 * 60 * 60 * 1000.
Using 3.2.5, the job has started same time every night (01:00), and finishin within the hour, in good time before people arrive in the morning.
However, since upgrading to 3.2.7, the jobs have start "slipping", i e starting later and later. And, the slip is exactly the time the job took, i e starting at the last nights finish-time. If this is the intended behaviour, it feels strange.
I have exactly same problem, so after more then a year I want to ask, if there was any developement of this issue.
Thanks Petr -
16. Re: Scheduler Jboss
danj Sep 4, 2006 3:56 AM (in response to acardeiradias)"petr5250" wrote:
"danj" wrote:
"schrouf" wrote:
Up to my knowledge it has always been "time from finish until next start".
Using 3.2.5, the job has started same time every night (01:00) /.../.
However, since upgrading to 3.2.7, the jobs have start "slipping", i e starting later and later. /.../
I have exactly same problem, so after more then a year I want to ask, if there was any developement of this issue.
Thanks Petr
I'm sorry to say: nothing. Since my original posting we have, in hope, upgraded to 4.0.3SP1. However, it still works the same way.
Dan -
17. Re: Scheduler Jboss
kresho Sep 12, 2006 5:07 AM (in response to acardeiradias)Here's an workaround - you can programatically reschedule your schedulable mbean after you finish the nightly job:
private void reschedule() { try { ObjectName scheduler = new ObjectName("hr.chipoteka.erp.nightly-tasks:service=Scheduler"); MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0); server.invoke(scheduler, "restartSchedule", new Object[0], new String[0]); } catch (Exception e) { // log the failure or whatever } }
Of course, replace hr.chipoteka.erp.nightly-tasks:service=Scheduler with your schedulable mbean's name. -
18. Re: Scheduler Jboss
knizamudeen Sep 15, 2006 7:12 AM (in response to acardeiradias)Does this scheduling activity deals anything with configuration of scheduler-service.xml , and can anyone get me the file structure of the sar/jar or whatever,like where the jboss-service.xml ll come n where the mbean, etc,etc.....
Thanks a lot in advance..... -
19. Re: Scheduler Jboss
knizamudeen Sep 15, 2006 7:13 AM (in response to acardeiradias)Does this scheduling activity deals anything with configuration of scheduler-service.xml , and can anyone get me the file structure of the sar/jar or whatever,like where the jboss-service.xml ll come n where the mbean, etc,etc.....
Thanks a lot in advance..... -
20. Re: Scheduler Jboss
knizamudeen Sep 18, 2006 2:05 AM (in response to acardeiradias)jboss-SERVICE.XML WHERE THIS FILE IS ACTUALLY CONFIGURED , LOCATION?
-
21. Re: Scheduler Jboss
knizamudeen Sep 18, 2006 7:45 AM (in response to acardeiradias)Hey guys i got it done, thanks for ur help this forum was very much informative.......
-
22. Re: Scheduler Jboss
moonsliver7 May 21, 2007 3:16 PM (in response to acardeiradias)kresho, your workaround worked great. Thanks!
-
23. Re: Scheduler Jboss
pranji May 29, 2007 7:20 AM (in response to acardeiradias)I have 7 schedulers running on my jboss 4.0.4 server. The problem is that they dont seem to be running concurrently. For example if one scheduler starts at 9 am, the second is scheduled to start at 9:05 but if the first one doesnt complete in 5 minutes the second scheduler doesnt start at all.
Is there a solution for this problem.I have diferent schedulable classes which have implemented the schedulable interface.
Any help will be greatly appreciated. -
24. Re: Scheduler Jboss
pranji May 30, 2007 1:22 AM (in response to acardeiradias)It seems I was wrong the first time my second scheduler doesnt seem to be running at all. The scheduler mentioned first in the scheduler-service.xml is only picked up and the other ones are just ignored by it I dont understand what is the problem