Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
Search
Recent Topics
Member Listing
Back to home page
Register
/
Login
[Expert]
doubt Quartz job scheduling ?
Forum Index
->
Quartz
Author
Message
01/07/2010 09:22:11
Subject:
doubt Quartz job scheduling ?
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 ,.......
01/07/2010 10:03:49
Subject:
Re:doubt Quartz job scheduling ?
jhouse
seraphim
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:
Select a forum
BigMemory
Ehcache
General
Quartz
BigMemory + Hadoop
Terracotta for Web Sessions
Terracotta Platform
Terracotta Licensing
Terracotta 中文社区
Terracotta for Spring
Powered by
JForum 2.1.7
©
JForum Team