public class ExampleJob extends QuartzJobBean { static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(ExampleJob.class);
private int timeout =0;
public void setTimeout(int timeout) { this.timeout = timeout; }
protected void executeInternal(JobExecutionContext ctx) throws JobExecutionException { // 작업 프로세스 정의 Date date = new Date(); System.out.print("[ExampleJob] Now is " + date.toString());