我希望将从jms队列接收的消息发送到spring pub子通道,以便将相同的消息转发到两个目的地。轮询器对于直接通道工作正常,但在发布到pub子通道时会丢弃邮件。请让我知道我错过了什么。
<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" />发布于 2021-02-25 07:36:30
发布/订阅通道的默认行为类似于没有持久订阅的JMS主题;如果没有订阅者,则删除消息。
https://stackoverflow.com/questions/66360198
复制相似问题