【发布时间】:2018-12-20 19:30:29
【问题描述】:
我们需要在基于 Spring Integration 的控制器模块中为传入和传出的 JMS 消息添加可追溯性(添加 trace-id 和 spell-id)。任何人都可以帮助我使用可用于此的拦截器,它可以拦截所有进入 JMS 队列的请求以及将发送到队列中的所有请求。
下面是sn-p的代码:
<!-- Need to trace the message once we receive in incoming_queue -->
<int-jms:message-driven-channel-adapter id="jmsIn" channel="channel_1"
destination-name="incoming_queue"></int-jms:message-driven-channel-adapter>
<!-- Need to trace the message before we send the message to outgoing_queue -->
<int-jms:outbound-channel-adapter id="jmsOut"
channel="channel_1" connection-factory="connectionFactory"
destination-name="outgoing_queue"/>
谢谢
【问题讨论】: