[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
doubt Quartz job scheduling ?  XML
Forum Index -> Quartz
Author Message
mrjayara

neo

Joined: 01/07/2010 09:18:53
Messages: 1
Offline

in my application we have web pages where we can schedule a job.

i like to use quartz , but job should not run until user click a start schedule button.

he may click the button after some days .

please let me know is it possible to implement this kind of feature using quartz ?

any idea is appreciated .

please help me ........

thanks in advance ,.......


jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1703
Offline


Mark the jobs as "durable" as you create them and store then in the scheduler with addJob(). This lets you store a job that is not yet scheduled.

You can then later create a trigger that references the already existing job by name, and then use the scheduleJob() method.

When your user presses the button, you could create a trigger with a start time of "now" to make the job immediately run.

james
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team