Spring integration spring集成jms可跟踪性

Spring integration spring集成jms可跟踪性,spring-integration,Spring Integration,我们需要在基于Spring集成的控制器模块中为传入和传出JMS消息添加可跟踪性(添加跟踪id和拼写id)。有谁能帮助我使用拦截器,它可以拦截进入JMS队列的所有请求以及将发送到队列的所有请求 下面是代码片段: <!-- Need to trace the message once we receive in incoming_queue --> <int-jms:message-driven-channel-adapter id=

我们需要在基于Spring集成的控制器模块中为传入和传出JMS消息添加可跟踪性(添加跟踪id和拼写id)。有谁能帮助我使用拦截器,它可以拦截进入JMS队列的所有请求以及将发送到队列的所有请求

下面是代码片段:

            <!-- 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"/>


谢谢

两边都有一个带有此JavaDoc的
DefaultJmsHeaderMapper

* This implementation copies JMS API headers (e.g. JMSReplyTo) to and from
 * Spring Integration Messages. Any user-defined properties will also be copied
 * from a JMS Message to a Spring Integration Message, and any other headers
 * on a Spring Integration Message (beyond the JMS API headers) will likewise
 * be copied to a JMS Message. Those other headers will be copied to the
 * general properties of a JMS Message whereas the JMS API headers are passed
 * to the appropriate setter methods (e.g. setJMSReplyTo).
因此,如果这些
跟踪id
拼写id
是兼容类型:

private static List<Class<?>> SUPPORTED_PROPERTY_TYPES = Arrays.asList(new Class<?>[] {
        Boolean.class, Byte.class, Double.class, Float.class, Integer.class, Long.class, Short.class, String.class });

私有静态列表非常感谢您。我能够实现我想做的事。