예제 #1
0
 public PageImpl() {
   Configuration conf = GlobalConfig.get();
   this.connectionFactory =
       ConnectionFactory.getConnectionFactory(
           conf.getString("employeeList.simple.connectionFactory", "dbcp"));
   this.db = conf.getString("platform.simple.db", null);
   this.pageTable = conf.getString("page.simple.pageTable", "page");
   this.imagePattern =
       conf.getString(
           "page.imageUrlPattern", "http://oss.aliyuncs.com/wutong-data/media/photo/%s");
 }
  private AsyncSendMailElearning(Configuration config) {
    //    	smtpServer = "smtp.gmail.com";
    smtpServer = "smtp.bizmail.yahoo.com";
    smtpPort = "465";
    //    	smtpFromUser = "******";
    //    	smtpFromUserPassword = "******";

    // -------------2012-10-11-------
    smtpFromUser = "******";
    smtpFromUserPassword = "******";
    // ------------end--------------------
    // smtpFromUser = "******";
    // smtpFromUserPassword = "******";

    this.config = config;
    serverHost = config.getString("server.host", "api.borqs.com");
  }
 @Override
 public void init() throws ServletException {
   super.init();
   Configuration conf = getConfiguration();
   serverHost = conf.getString("server.host", "api.borqs.com");
 }