Passing parameters to a job in Quartz
Presently I have a code that has a java main method and which takes few command line args for its execution. I am in the process of making this as a quartz job, I would like to pass the arguments to this job.
Is there a way I can do it? I did some analysis on the JobDataMap but I am not sure if I can use it for this purpose.
Also, this job is going to be one time job that requires pause and c开发者_Go百科ontinue kind of actions from the user. What kind of job should I extend or use for this case w.r.t quartz?
Thanks a bunch for your time.
Cheers, Abi
First, yes JobDataMap is here to let you pass parameters to your job, no problem about using it for that purpose !
Second, the question is not which Job to extend (Job class must be sufficient) but more - which trigger to use ?
- Cron Trigger Tutorial may help
Don't know exactly which user interaction you need, but you must be able to achieve your goal using Standby
精彩评论