【发布时间】:2013-08-02 08:44:09
【问题描述】:
在我们的系统中,外部客户端将消息放在 JMS 队列中。 我们的 Spring Integration 应用程序需要从这些队列中获取消息并进行处理。 我最初的尝试是使用以下配置:
<int:channel id="source_channel" />
<int-jms:inbound-channel-adapter
id="source"
channel="source_channel"
destination-name="jms-queue-name"
connection-factory="...">
<int:poller fixed-rate="1000" />
</int-jms:inbound-channel-adapter>
<int:service-activator input-channel="source_channel" ref="sourceMessageReciever"/>
我希望服务激活器 bean 在客户端将消息放入“jms-queue-name”队列时处理该消息,但这并没有发生。这是正确的方法,还是我需要使用 messageGateway 来做到这一点? 谢谢,
玫瑰
【问题讨论】:
-
开启DEBUG日志;一切都应该变得明显;如果您对日志中看到的内容有疑问,请修改您的问题。
标签: spring spring-integration spring-jms