wood burning stoves 2.0*
The moose likes Java in General and the fly likes Issue in Quartz rescheduling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Issue in Quartz rescheduling" Watch "Issue in Quartz rescheduling" New topic
Author

Issue in Quartz rescheduling

Arun Vasu
Greenhorn

Joined: Oct 05, 2010
Posts: 24

Hi,

I have an issue with Quartz job rescheduling. The issue is as below,

1. I have 2 Scheduler jobs which are based on Cron expressions.
2. The first job (Job A )will configure the second job (Job B)and Job A itself based on cron expressions provided in data base table.
3. The Job A is configured to run at every 0th minute of hour and Job B is scheduled to run at 15th minute of every hour.
4. After both the jobs ran for first time , I am changing the cron expression for the Job B to 'run it on every 45th minute of every hour'
5. On the 0th minute of next hour, Job A is reconfiguring Job B melodramatically (Using Scheduler.rescheduleJob()). At this point expected behavior is
the Job B should run on next 45th minute of the coming hour. But the Job b is running along with the Job A running on 0th miute of the hour and on
45th minute as expected. Later on it is running on 45th minute only as expected.

Additional information:
Quartz version used : 1.6.5
This scheduling program is deployed in Jboss 4.3 application server with two nodes in clustered environment
Database used : Oracle 10g
Arun Vasu
Greenhorn

Joined: Oct 05, 2010
Posts: 24

Arun Vasu wrote:Hi,

I have an issue with Quartz job rescheduling. The issue is as below,

1. I have 2 Scheduler jobs which are based on Cron expressions.
2. The first job (Job A )will configure the second job (Job B)and Job A itself based on cron expressions provided in data base table.
3. The Job A is configured to run at every 0th minute of hour and Job B is scheduled to run at 15th minute of every hour.
4. After both the jobs ran for first time , I am changing the cron expression for the Job B to 'run it on every 45th minute of every hour'
5. On the 0th minute of next hour, Job A is reconfiguring Job B melodramatically (Using Scheduler.rescheduleJob()). At this point expected behavior is
the Job B should run on next 45th minute of the coming hour. But the Job b is running along with the Job A running on 0th miute of the hour and on
45th minute as expected. Later on it is running on 45th minute only as expected.

Additional information:
Quartz version used : 1.6.5
This scheduling program is deployed in Jboss 4.3 application server with two nodes in clustered environment
Database used : Oracle 10g
Clould somebody tell me what may be the issue here?

Thanks in advance!
Arun
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Wow, quicking within one minute. That must be a record!

For future reference, PatienceIsAVirtue.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Arun Vasu
Greenhorn

Joined: Oct 05, 2010
Posts: 24

Somebody please look into this!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue in Quartz rescheduling
 
Similar Threads
cron vs Quartz
Need help with Quartz's Cron Expression
suggestion ways of setting up a cron on windows plateform
Thread Scheduler
Rescheduling jobs in Quartz with JobStoreTX