본문 바로가기
Spring

Spring Quartz 1-1

by 아이티.파머 2010. 12. 14.
반응형
package com.dongbu.farm.schedule.que;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class ExampleJob extends QuartzJobBean {

private int timeout;

/**
 * Setter called after the ExampleJob is instantiated with the value from
 * the JobDetailBean (5)
 */
public void setTimeout(int timeout) {
this.timeout = timeout;
}

protected void executeInternal(JobExecutionContext ctx) throws JobExecutionException {
System.out.println(ctx);
System.out.println("\\n\\n\\n 띠요요요요요용~~~~");
}
}

package com..dongbu.farm.system.schedule;

public class SDTimerQuartz {
public void init(){
                System.out.println("으하하하하하핳하하하");
}
}



반응형

'Spring' 카테고리의 다른 글

Spring Annotation 사용방법  (0) 2011.03.14
Spring Quartz 1-2  (0) 2010.12.14
Spring Timer Sample  (0) 2010.12.14
Ibitis ResultMap XML 자동 생성하기.  (0) 2010.09.14
Mail - Spring JavaMailSender(2/2) - Mail sender Test  (0) 2010.09.14