aspose file tools*
The moose likes Java in General and the fly likes Java Scheduler - help in designing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Scheduler - help in designing " Watch "Java Scheduler - help in designing " New topic
Author

Java Scheduler - help in designing

Raghu Nathan
Ranch Hand

Joined: Jan 16, 2006
Posts: 44
Hi Folks,
First of all I do not know if this I am in the right form, if it is not then I apologize and please direct me to the right one.

Here's my requirement: I need a Java Scheduler. Something that is supposed to check the database every minute (that sounds expensive to me, would love your inputs) and see if there are any jobs for that minute.
And if there is a job to be run that minute, get the information pertinent to executing the job and add the job to a queue. This job will be delegated to a worker that will have its own thread and will run the job.
I did some research and saw the Quartz framework.
Now my questions:
*I was given this requirement. For the domain I am on, I do not think I need a task to be hitting the database every minute and check for a job.

*If it is not a big deal to do it in this way, can i use Quartz in some fashion?

*If not for this solution or Quartz, what is the best way to execute this need. Wherein an administrator will go in and add tasks and the time in the database and will expect the application to fire it at that instant.

I know I've given a very long question. I could not help it; I needed to get a validation on the design and see if some of you gurus can help me with a sound solution.

Thanks for all your help.


Thanks ... Raghu
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Hi,

I faced something very similar to your requirement. Take a look Here

Does that help?

Cheers,
Raj.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Scheduler - help in designing
 
Similar Threads
Java Scheduler - Quartz API?
Quartz1.6.4 - how to maintain state after system/application restart
How to schedule a recurring job in Websphere?
Issue in Quartz rescheduling
How to add job for running Quartz scheduler instance?