7305838952a68164d2b0568b2a7671c85ef0e09c.svn-base 867 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.sinosoft.common.quartz;
  2. import java.sql.SQLException;
  3. import org.apache.log4j.Logger;
  4. import org.quartz.Job;
  5. import org.quartz.JobExecutionContext;
  6. import org.quartz.JobExecutionException;
  7. import com.sinosoft.am.Splider.test.Addnews;
  8. import com.sinosoft.am.plan.dao.PlanSendSMS;
  9. /**
  10. * 定时读取短信文件夹的定时任务,
  11. * @author xuwei
  12. * @date 2016-4-13
  13. */
  14. public class GetNewsInfo implements Job{
  15. private Logger log = Logger.getLogger(this.getClass());
  16. @Override
  17. public void execute(JobExecutionContext jobexecutioncontext) throws JobExecutionException {
  18. // TODO Auto-generated method stub
  19. log.info("start GetNewsInfo ======");
  20. //新闻定时任务
  21. try {
  22. new Addnews().getDatas();
  23. new Addnews().getNewsInfo();
  24. } catch (SQLException e) {
  25. // TODO Auto-generated catch block
  26. e.printStackTrace();
  27. }
  28. }
  29. }