作者 朱兆平

给九州发送数据,双CLIENT,同时发送货运数据 和 通关数据

... ... @@ -62,7 +62,7 @@ public class Main {
//发送通关数据
String sql_select1=ConfigUtils.SQl1;
String sqlmax1 = ConfigUtils.SQlMax1;
IMFNoDelaySender CangKu2Jiuzhou_tg = new IMFNoDelaySender(client,"data/fid_index.txt",sql_select1,sqlmax1);
IMFNoDelaySender CangKu2Jiuzhou_tg = new IMFNoDelaySender(client,"data/fid_index_haiguan.txt",sql_select1,sqlmax1);
CangKu2Jiuzhou_tg.start();
// timer.schedule(CangKu2Jiuzhou, 10000L, 1200000L);
... ...
... ... @@ -135,6 +135,12 @@ public class IMFNoDelaySender extends Thread{
logger.info("FID=" + m.getFid() + "XML is null ");
}
}
}else {
try {
Thread.sleep(10000L);
} catch (InterruptedException var3) {
var3.printStackTrace();
}
}
}
... ...