Utilize Quartz to Implement Scheduling Service Albert Guo [email_address]
Agenda <ul><li>Scenario </li></ul><ul><li>Quartz </li></ul><ul><li>Implementation Process </li></ul><ul><ul><li>define job...
Scenario Resume Repository Transfer resume to HTC  once a day Retrieve resume from resume  repository once a day Recruitin...
Quartz <ul><li>What is Quartz </li></ul><ul><ul><li>Quartz is a full-featured, open source job scheduling system that can ...
Implementation Process
Job & Scheduler Class Define your job in this class Define your scheduling service in this servlet class
Job Class Define job execution stuff into execute method
Scheduler
Define Schedule Servlet in web.xml
Check Console
Upcoming SlideShare
Loading in …5
×

Utilize Quartz to Implement Scheduling Service

2,259 views

Published on

Published in: Technology, Business
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,259
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
82
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Utilize Quartz to Implement Scheduling Service

  1. 1. Utilize Quartz to Implement Scheduling Service Albert Guo [email_address]
  2. 2. Agenda <ul><li>Scenario </li></ul><ul><li>Quartz </li></ul><ul><li>Implementation Process </li></ul><ul><ul><li>define job class </li></ul></ul><ul><ul><li>define scheduler </li></ul></ul><ul><ul><ul><li>create a simple, RAM-based scheduler </li></ul></ul></ul><ul><ul><ul><li>create a job which is schedule to run at specific time every day </li></ul></ul></ul><ul><ul><ul><li>register job to scheduler </li></ul></ul></ul><ul><ul><ul><li>The scheduler is then started </li></ul></ul></ul>
  3. 3. Scenario Resume Repository Transfer resume to HTC once a day Retrieve resume from resume repository once a day Recruiting System
  4. 4. Quartz <ul><li>What is Quartz </li></ul><ul><ul><li>Quartz is a full-featured, open source job scheduling system that can be integrated with, or used along side virtually any J2EE or J2SE application - from the smallest stand-alone application to the largest e-commerce system. </li></ul></ul><ul><ul><li>Quartz can be used to create simple or complex schedules for executing tens, hundreds, or even tens-of-thousands of jobs; jobs whose tasks are defined as standard Java components or EJBs. </li></ul></ul><ul><ul><li>The Quartz Scheduler includes many enterprise-class features, such as JTA transactions and clustering. </li></ul></ul><ul><ul><li>http://www.opensymphony.com/quartz/ </li></ul></ul>
  5. 5. Implementation Process
  6. 6. Job & Scheduler Class Define your job in this class Define your scheduling service in this servlet class
  7. 7. Job Class Define job execution stuff into execute method
  8. 8. Scheduler
  9. 9. Define Schedule Servlet in web.xml
  10. 10. Check Console

×