How to write a scheduling job in java


1. Quartz

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. 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. The Quartz Scheduler includes many enterprise-class features, such as JTA transactions and clustering.

http://www.opensymphony.com/quartz/

2. java batch process

If you are looking for writing java batch process you can find nice sample program at below link

http://www.java-tips.org/other-api-tips/jdbc/how-to-exceute-a-batch-process-from-preparedstat-2.html

3. java job triggering

If you need triggering point from java then you might want to take look at Timer class in java.
http://java.sun.com/j2se/1.4.2/docs/api/index.html

Related Posts: