问题描述
为此使用流程:
<flow name="amq2http">
<jms:inbound-endpoint queue="yourQueue" />
<http:outbound-endpoint address="http://whatever.url" />
</flow>
当然,您需要配置ActiveMQ连接器:
<jms:activemq-connector name="jmsConnector" brokerURL="tcp://localhost:61616"/>
阅读以下链接以获取更多信息:
- http://www.mulesoft.org/documentation/display/current/ActiveMQ+Integration
- http://www.mulesoft.org/documentation/display/current/HTTP+Transport+Reference
解决方法
如何使用Active-MQ实现JMS发布/订阅模型。我有一个入站JMS Active-
MQ队列/主题,所有消息都在其中。另一方面,我有几个出站消费者(Tomcat-Http)。我想以这样一种方式实现发布/订阅模型:一旦我在Active-
MQ中收到一条消息,它将以异步方式调用所有tomcat消费者。
有什么办法可以在Mule中实现上述模型?