123456789101112131415161718192021222324252627282930313233343536373839 |
- package com.sinosoft.common.quartz;
- import java.sql.SQLException;
- import org.apache.log4j.Logger;
- import org.quartz.Job;
- import org.quartz.JobExecutionContext;
- import org.quartz.JobExecutionException;
- import com.sinosoft.am.Splider.test.Addnews;
- import com.sinosoft.am.plan.dao.PlanSendSMS;
- /**
- * 定时读取短信文件夹的定时任务,
- * @author xuwei
- * @date 2016-4-13
- */
- public class GetNewsInfo implements Job{
- private Logger log = Logger.getLogger(this.getClass());
- @Override
- public void execute(JobExecutionContext jobexecutioncontext) throws JobExecutionException {
- // TODO Auto-generated method stub
- log.info("start GetNewsInfo ======");
- //新闻定时任务
- try {
- new Addnews().getDatas();
- new Addnews().getNewsInfo();
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- }
- }
|