Jay Taylor's notes
back to listing indexjava quartz scheduler fire a new job immediately - Stack Overflow
[web search]
Is it possible to crate a job that will trigger immediately ? when i want the job to be triggres now i builed a cron expression string with the current date and time - i think it's too complicated, is there another way to trigger the job immediately ? Thank's In Advance.
| ||||
add comment | ||||
All the Jobs registered in the Quartz Scheduler are uniquely identified by the JobKey which is composed of a name and group . You can fire the job which has a given JobKey immediately by calling triggerJob(JobKey jobKey) of your Scheduler instance.
Note :
| ||||
add comment |
Yeah, use the following
| |||
add comment |