How to run two or more scheduler without re-start the Server...?
I hope Jboss can support more than one scheduler.
I using schduler for pick up the data from one table and store into another table in regular interval. I don't have any problems when I create the only one scheduler. I am facing probs when I create more than one scheduler. The main content of scheduler-service.xml given below.
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=448VehiclesoracleScheduler">
true
basewep.services.crawler.ScheduleCrawler
oracle ,Vehicles,427
java.lang.String,java.lang.String,java.lang.String
NOW
86400000
25
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=449VehiclesoracleScheduler">
true
basewep.services.crawler.ScheduleCrawler
oracle ,Vehicles,417
java.lang.String,java.lang.String,java.lang.String
NOW
86400000
15
Problems which faced is listed below.
1. For example, The First scheduler (448VehiclesoracleScheduler) has to execute 25 times. I am creating (Updating the scheduler-service.xml) the second scheduler (449VehiclesoracleScheduler) when the first scheduler has completed the 10 repetitions. Here I am facting the probs. when the scheduler-service.xml file deploying in the server and first scheduler start from the begining.
2. Second scheduler not at all coming to picture. second scheduler not starting also.