在Web逻辑服务器中重新部署Spring Integration应用程序后,消息不会通过重新启动服务器获得消息驱动通道适配器,消息将再次进入Spring集成应用程序 . 使用跟踪日志表示虽然只是发送了消息但没有收到消息 . 甚至完全maven部署 - Stop-app -.Undeploy - > Deploy -.Start-app .

我正在使用默认消息侦听器配置和消息选择器 . 以下配置使用 -

<bean id="connectionFactory"
            class="org.springframework.jms.connection.CachingConnectionFactory">
            <property name="targetConnectionFactory"
    ref="userConnectionFactory" />      <property name="cacheConsumers"
    value="true" />         <property name="reconnectOnException" value="true"
    />  </bean> 

<bean
    id="publishmessageListenerContainer"    class="org.springframework.jms.listener.DefaultMessageListenerContainer">       <property name="connectionFactory" ref="connectionFactory" />
            <property name="destination" ref="publishIncoming" /> 

<property
name="maxConcurrentConsumers" value="20" />         <property
name="concurrentConsumers"    value="1" />          
name="autoStartup" value="false" />     
name="messageSelector" value="CMDTARGET='PUBLISH'" > </bean>

消息驱动通道适配器 -

<int-jms:message-driven-channel-adapter id="jmsInEldm"container="publishmessageListenerContainer"
    channel="IncomingELDMChannel"/>

如果这是错误或缺少配置,请告诉我 .