In my previous post here I demonstrated how to register a quartz job and trigger it manually. Now it’s time to move ahead and schedule quartz jobs with cron expression. Like I had created a generic class for manual jobs let’s create one for schedule jobs. Here’s the source:

That’s the job itself but it still doesn’t know what block does it need to execute when it will be triggered. Like in the previous post. We’ll need to create the class that implements Job interface and overrides the execute method of it like:

Now, let’s start scheduling the jobs.

And that’s all to it.