| ... | ... | @@ -23,8 +23,8 @@ import java.util.concurrent.ThreadPoolExecutor; | 
|  |  | @Component | 
|  |  | public class NmmsMqSendTask { | 
|  |  |  | 
|  |  | //回执读取目录 | 
|  |  | @Value("${mq.nmms.sendXml-dir}") | 
|  |  | //发送报文读取目录 | 
|  |  | @Value("${mq.dir.sendXml-dir}") | 
|  |  | private  String sendXmldir; | 
|  |  |  | 
|  |  | @Value("${mq.connection.ip}") | 
| ... | ... | @@ -42,15 +42,24 @@ public class NmmsMqSendTask { | 
|  |  | @Value("${mq.connection.password}") | 
|  |  | private  String mqPassword; | 
|  |  |  | 
|  |  | @Value("${mq.queue.nmms-mq}") | 
|  |  | @Value("${mq.queue.send-to-mq}") | 
|  |  | private String queueName; | 
|  |  |  | 
|  |  | @Value("${mq.exchange.name}") | 
|  |  | private String exchangeName; | 
|  |  |  | 
|  |  | @Value("${mq.exchange.type}") | 
|  |  | private String exchangeType; | 
|  |  |  | 
|  |  | @Value("${mq.exchange.routing-key}") | 
|  |  | private String routingName; | 
|  |  |  | 
|  |  | /** | 
|  |  | * 线程数量 | 
|  |  | */ | 
|  |  | private final static int theadamount = 10; | 
|  |  |  | 
|  |  | //    @Scheduled(fixedRate = 5000) | 
|  |  | @Scheduled(fixedRate = 5000) | 
|  |  | public void startTask(){ | 
|  |  |  | 
|  |  | final SimpleDateFormat sdf = new SimpleDateFormat( | 
| ... | ... | @@ -106,6 +115,9 @@ public class NmmsMqSendTask { | 
|  |  | sendXml2MqThread.setMqUsername(mqUsername); | 
|  |  | sendXml2MqThread.setMqPassword(mqPassword); | 
|  |  | sendXml2MqThread.setQueueName(queueName); | 
|  |  | sendXml2MqThread.setExchangeName(exchangeName); | 
|  |  | sendXml2MqThread.setExchangeType(exchangeType); | 
|  |  | sendXml2MqThread.setRoutingName(routingName); | 
|  |  | threadPool.execute(sendXml2MqThread); | 
|  |  | }catch (Exception e){ | 
|  |  | log.error("线程解析出错{}",e); | 
... | ... |  |