示例#1
0
 public CDRServer()
 {
     dbpool = new DBPool();
     gateway = new GatewayCDR();
     Preference.loadProperties("gateway.cfg");
     FtpData.loadProperties("ftp2cdrserver.cfg");
     break MISSING_BLOCK_LABEL_51;
     IOException e;
     e;
     Logger.info("CDRServer:", "khong tim thay file cau hinh");
     dbpool;
     DBPool.ConfigDB();
     Logger.setLogWriter("log/cdr${yyyy-MM-dd}.log");
     break MISSING_BLOCK_LABEL_72;
     IOException ex;
     ex;
     Logger.setLogLevel("info,warn,error,crisis");
     return;
 }
示例#2
0
  public static void main(String[] args) {
    try {
      GatewayCDR gateway = new GatewayCDR();
      try {
        Preference.loadProperties("gateway.cfg");
        // if ("GPC".equals(Preference.mobileOperator) ||
        // "VIETTEL".equals(Preference.mobileOperator))
        FtpData.loadProperties("ftp2cdrserver.cfg");
      } catch (Exception e) {
        System.out.println("CDRServer: khong tim thay file cau hinh ");
      }
      gateway.addMoreConnection2Pool(1);

      if (args != null && args.length > 1) {
        System.out.println(">>>" + args[0] + "  >>>  " + args[1]);
        DBScanner.pushCDRinQueueEx8x99(args[0].trim(), args[1].trim());
      } else {
        System.out.println(">>>Thang 04 !!!");
        DBScanner.pushCDRinQueueEx8x99("060401000000", "060425093500");
      }
    } catch (DBException ex) {
      System.out.println(">>>>Loi: " + ex.toString());
    }
  }