作者 朱兆平

sender改成单独发吧,对九州的sender发华东数据 优化

... ... @@ -57,12 +57,6 @@ public class Main {
String sqlmax = ConfigUtils.SQlMax;
IMFNoDelaySender CangKu2Jiuzhou = new IMFNoDelaySender(client,"data/fid_index.txt",sql_select,sqlmax);
CangKu2Jiuzhou.start();
//发送通关数据
String sql_select1=ConfigUtils.SQl1;
String sqlmax1 = ConfigUtils.SQlMax1;
IMFNoDelaySender CangKu2Jiuzhou_tg = new IMFNoDelaySender(client,"data/fid_index_haiguan.txt",sql_select1,sqlmax1);
CangKu2Jiuzhou_tg.start();
// timer.schedule(CangKu2Jiuzhou, 10000L, 1200000L);
}
... ...
... ... @@ -85,19 +85,19 @@ public class IMFNoDelaySender extends Thread{
String xmlStr = m.getContent();
//_____________________________________解析华东的报文给九州-------------------------------------------------------------------------------------------
if (xmlStr.contains("<MessageType>IS1</MessageType>")){
IMFXMLMaker haiguanXml = new IMFXMLMaker("DCKS",Integer.toString(m.getFid()),"DFME","IS1");
IMFXMLMaker haiguanXml = new IMFXMLMaker(header.getSndr(),Integer.toString(m.getFid()),"DFME","IS1");
haiguanXml.setIMFContent(m.getContent());
sendMsg = haiguanXml.finalXmlStr();
}else if(xmlStr.contains("<MessageType>ES1</MessageType>") ){
IMFXMLMaker haiguanXml = new IMFXMLMaker("DCKS",Integer.toString(m.getFid()),"DFME","ES1");
IMFXMLMaker haiguanXml = new IMFXMLMaker(header.getSndr(),Integer.toString(m.getFid()),"DFME","ES1");
haiguanXml.setIMFContent(m.getContent());
sendMsg = haiguanXml.finalXmlStr();
}else if(xmlStr.contains("<MessageType>CLR</MessageType>")){
IMFXMLMaker haiguanXml = new IMFXMLMaker("DCKS",Integer.toString(m.getFid()),"DFME","CLR");
IMFXMLMaker haiguanXml = new IMFXMLMaker(header.getSndr(),Integer.toString(m.getFid()),"DFME","CLR");
haiguanXml.setIMFContent(m.getContent());
sendMsg = haiguanXml.finalXmlStr();
}else if(xmlStr.contains("<MessageType>RSC</MessageType>")){
IMFXMLMaker haiguanXml = new IMFXMLMaker("DCKS",Integer.toString(m.getFid()),"DFME","RSC");
IMFXMLMaker haiguanXml = new IMFXMLMaker(header.getSndr(),Integer.toString(m.getFid()),"DFME","RSC");
haiguanXml.setIMFContent(m.getContent());
sendMsg = haiguanXml.finalXmlStr();
} else {
... ...
Manifest-Version: 1.0
Class-Path: org.springframework.jdbc-3.0.0.CI-331.jar spring-jms-3.0.5
.RELEASE.jar spring-expression-3.0.5.RELEASE.jar spring-aop-3.0.5.REL
EASE.jar imfmsg.jar HeartbeatService.jar c3p0-0.9.5.2.jar spring-bean
s-3.0.5.RELEASE.jar mchange-commons-java-0.2.11.jar UploadService.jar
spring-core-3.0.5.RELEASE.jar spring-asm-3.0.5.RELEASE.jar apiConfig
.jar CL3Export.jar CL3Nonexport.jar com.ibm.mq.axis2.jar com.ibm.mq.c
ommonservices.jar com.ibm.mq.defaultconfig.jar com.ibm.mq.headers.jar
com.ibm.mq.jar com.ibm.mq.jmqi.jar com.ibm.mq.jms.Nojndi.jar com.ibm
.mq.pcf.jar com.ibm.mq.postcard.jar com.ibm.mq.soap.jar com.ibm.mq.to
ols.ras.jar com.ibm.mqetclient.jar com.ibm.mqjms.jar connector.jar dh
bcore.jar fscontext.jar jms.jar jndi.jar jta.jar ldap.jar provideruti
l.jar rmm.jar antlr-2.7.7.jar antlr-3.2.jar antlr-runtime-3.2.jar aop
alliance-1.0.jar asm-3.3.jar bcprov-jdk15-1.45.jar commons-collection
s-3.2.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-po
ol-1.5.5.jar cxf-2.3.2.jar cxf-xjc-boolean-2.3.2.jar cxf-xjc-bug671-2
.3.2.jar cxf-xjc-dv-2.3.2.jar cxf-xjc-ts-2.3.2.jar FastInfoset-1.2.8.
jar geronimo-activation_1.1_spec-1.1.jar geronimo-annotation_1.0_spec
-1.1.1.jar geronimo-javamail_1.4_spec-1.7.1.jar geronimo-jaxws_2.2_sp
ec-1.0.jar geronimo-jms_1.1_spec-1.1.1.jar geronimo-servlet_3.0_spec-
1.0.jar geronimo-stax-api_1.0_spec-1.0.1.jar geronimo-ws-metadata_2.0
_spec-1.1.3.jar jaxb-api-2.2.1.jar jaxb-impl-2.2.1.1.jar jettison-1.2
.jar jetty-continuation-7.2.2.v20101205.jar jetty-http-7.2.2.v2010120
5.jar jetty-io-7.2.2.v20101205.jar jetty-server-7.2.2.v20101205.jar j
etty-util-7.2.2.v20101205.jar jra-1.0-alpha-4.jar js-1.7R2.jar jsr173
_1.0_api.jar jsr311-api-1.1.1.jar neethi-2.0.4.jar oro-2.0.8.jar reso
lver.jar saaj-api-1.3.jar saaj-impl-1.3.2.jar serializer-2.7.1.jar si
gar.jar slf4j-api-1.6.1.jar slf4j-jdk14-1.6.1.jar stax2-api-3.0.2.jar
stringtemplate-3.2.jar velocity-1.6.4.jar woodstox-core-asl-4.0.8.ja
r wsdl4j-1.6.2.jar wss4j-1.5.11.jar xalan-2.7.1.jar xbean_xpath.jar x
bean.jar xml-resolver-1.2.jar xmlbeans-2.4.0.jar xmlbeans-qname.jar x
mlpublic.jar XmlSchema-1.4.7.jar xmlsec-1.4.4.jar com.ibm.mq.fta.jar
log4j-1.2.16.jar jaxb-xjc-2.2.1.1.jar spring-tx-3.0.5.RELEASE.jar ojd
bc6.jar jdom-1.1.3.jar IMFClient.1.0.0.jar spring-web-3.0.5.RELEASE.j
ar spring-context-3.0.5.RELEASE.jar returnXml.jar ProcessService.jar
Main-Class: com.airport.Main