File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes How to create a timeframe from Quartz Job Scheduler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply locked New topic
Author

How to create a timeframe from Quartz Job Scheduler

Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Hi,

I have created a Job for Quartz Scheduler, which is in turn reading from a queue and writing into file system.

Now we have a restriction that we should keep writing until queue message count reaches 5000 or 2hrs have been passed.

For queue message count I could do this restriction in that job class itself, but how could I manage time restriction from Scheduler. I know, I can handle this restriction in actual queue reading class. But just for sake of maintainability we want to control it through Quartz Scheduler.

Any help would be appreciated.

Thanks
Ankur


The Best way to predict your future is to create it - Every great individual common man
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Duplicate thread, locking this one and continuing in the other


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a timeframe from Quartz Job Scheduler