首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring Integration Poller丢弃消息

Spring Integration Poller丢弃消息
EN

Stack Overflow用户
提问于 2021-02-25 07:16:48
回答 1查看 35关注 0票数 0

我希望将从jms队列接收的消息发送到spring pub子通道,以便将相同的消息转发到两个目的地。轮询器对于直接通道工作正常,但在发布到pub子通道时会丢弃邮件。请让我知道我错过了什么。

代码语言:javascript
复制
<int-jms:inbound-channel-adapter connection-factory="connectionFactory" destination-name="queue-name" channel="jmsChannel" extract-payload="false" acknowledge="transacted">
        <int:poller max-messages-per-poll="5" fixed-delay="1000"></int:poller>
                </int-jms:inbound-channel-adapter>

<int:publish-subscribe-channel id="jmsChannel" task-executor="executor" />              
        
    <task:executor id="executor" pool-size="10"/>
    
<int-jms:outbound-channel-adapter  connection-factory="connectionFactory" channel="jmsChannel"  destination-name="sample-q" />
EN

回答 1

Stack Overflow用户

发布于 2021-02-25 07:36:30

发布/订阅通道的默认行为类似于没有持久订阅的JMS主题;如果没有订阅者,则删除消息。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66360198

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档