Tuesday, April 29, 2008

Quartz Continued - 2

We had discussed the very basic details about the framework now lets start digging in.

To start working with quartz we need to download the quartz.jar files . You can download it from
www.opensymphony.com/quartz . There are some more jar files required ..

Commons BeanUtils

Commons Collections

Commons Digester

Commons Logging

Jta.jar

The main purpose of using the quartz framework is to get some process to executed at a fixed interval. This process in the quartz framework is called the job. The process or the procedure you want to execute at regular intervals is called the job. This class must implement the interface Job and hence override the function execute(). execute() takes JobExecutionContext as an argument. and throws JobExecutionException. We can pass parameters to the job using the JobDataMap which is an impementation of the java.util.map.

Jobs can be further divided into 2 they areStateful jobs and non-stateful jobs, now deciding which of these you want to use depends on whether you want to change these parameters during execution.

Reference: Quartz job scheduling framework ; by Cavaness, Chuck

Job
Scheduling in Java;
http://www.onjava.com/








No comments:

Post a Comment