【发布时间】:2016-08-25 21:41:40
【问题描述】:
我正在使用带有camel的activemq来消费来自队列的消息并将它们发送到http服务器。我正在使用以下骆驼配置:-
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="activemq:queue:Consumer.A.VirtualTopic.Orders"/>
<to uri="http://localhost:8080/" />
<!-- <to uri="file:///Users/vinod/activemq.txt"/> -->
<!-- <to uri="activemq:queue:sssss"/> -->
</route>
</camelContext>
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" >
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="vm://localhost?create=false"/>
</bean>
</property>
</bean>
在第一个块中创建一个路由,将来自activemq:queue:Consumer.A.VirtualTopic.Orders 的消费者消息排队并将它们发送到http://localhost:8080/ 的服务器。其他两个注释的目的地工作正常,但是当我使用上述配置启动 activemq 以通过 http 发送消息时,服务器停止而不会抛出任何错误消息。 Activemq 日志为 https://gist.github.com/kumar003vinod/1e5944cb246edb74c47fef7a0b433387
请提供一些见解。
【问题讨论】:
标签: apache-camel activemq