【发布时间】:2015-05-26 20:23:33
【问题描述】:
我在使用以下消息驱动程序通道适配器时遇到问题
@Bean
public IntegrationFlow jmsInboundFlow() {
return IntegrationFlows.from(Jms.messageDriverChannelAdapter(this.jmsConnectionFactory)
.outputChannel(MessageChannels.queue("inbound").get())
.destination("test"))
.get();
}
@Bean
public IntegrationFlow channelFlow() {
return IntegrationFlows.from("inbound")
.transform("hello "::concat)
.handle(System.out::println)
.get();
}
我收到有关“Dispatcher 没有频道订阅者”的错误消息。将消息负载发送到另一个集成流的首选配置是什么?
【问题讨论】:
-
你的
@EnableIntegration定义在你的@Configuration类之一上吗? -
我确实定义了@EnableIntegration。