【发布时间】:2019-10-11 12:52:46
【问题描述】:
我需要在 Spring 集成流程中将 callContext 对象作为线程 Local 注入。在 jms 标头中接收到的 traceId 应在 callContext 对象中提取 n 集,以便在项目级别配置的日志中打印。
IntegrationFlows.from(Jms.messageDrivenChannelAdapter(connectionFactory).destination(topicName))
.log(INFO, m-> “message received for: + ((Order)m.getPayload()).getOrderId())
.handle(orderService)
.get();
【问题讨论】:
标签: spring-integration spring-integration-dsl