Quellcode durchsuchen

Merge branch 'master' of http://192.168.1.220:10080/CoSharp/eip

huangzhiyong vor 7 Jahren
Ursprung
Commit
b4728bf578

+ 4 - 17
hos-broker/src/main/java/com/yihu/hos/broker/services/camel/CamelStartBoot.java

@ -27,7 +27,10 @@ public class CamelStartBoot {
    private static Logger logger = LoggerFactory.getLogger(CamelStartBoot.class);
    private BrokerServerService brokerServerService;
    private CamelContext context = SystemCamelContext.getContext();
//    private CamelContext context = SystemCamelContext.getContext();
    @Autowired
    private CamelContext context;
    @Autowired
    public void setBrokerServerService(BrokerServerService brokerServerService) {
@ -39,24 +42,8 @@ public class CamelStartBoot {
        try {
            context.setUseMDCLogging(true);
            Tracer tracer = new Tracer();
            tracer.setTraceOutExchanges(true);
            DefaultTraceFormatter formatter = new TracerFormatter();
            formatter.setShowHeaders(true);
            formatter.setShowBody(true);
            formatter.setShowBodyType(true);
            formatter.setShowOutHeaders(true);
            formatter.setShowOutBody(true);
            formatter.setShowOutBodyType(true);
            tracer.setFormatter(formatter);
            context.addInterceptStrategy(tracer);
            context.setTracing(true);
            context.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS, "true");
            context.start();
            List<URL> URLs = new ArrayList<>();