【发布时间】:2015-10-29 22:52:35
【问题描述】:
我想从 apache camel 站点测试骆驼弹簧集成示例 http://camel.apache.org/springintegration.html 但我遇到了异常 org.apache.camel.RuntimeCamelException: org.springframework.integration.MessageDeliveryException: Dispatcher 没有频道 outputchannel 的订阅者。
我的短代码如下:
<channel id="inChannel"/>
<channel id="outputChannel"/>
<beans:bean id="greeting" class="com.javarticles.spring.integration.Greeting"/>
<service-activator input-channel="inChannel" ref="greeting" method="sayHello" output-channel="outputChannel"/>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="activemq:activemqsource"/>
<to uri="log:input"/>
<to uri="spring-integration:inChannel? inputChannel=outputChannel"/>
<to uri="log:output"/>
</route>
我试图搜索相关问题,但我没有得到骆驼任何人可以告诉我如何订阅输出频道
【问题讨论】:
标签: apache-camel spring-integration