如何使用Active-MQ实现JMS发布/订阅模型。我有一个入站JMS Active-MQ队列/主题,所有消息都来自该队列/主题。在另一边,我有一对出站消费者(Tomcat-Http)。我希望以这样一种方式实现发布/订阅模型:一旦我在Active-MQ中接收到消息,它将以异步方式调用所有tomcat消费者。
有没有办法在Mule中实现上述模型?
使用流:
<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 +集成/gh>
- http://www.mulesoft.org/documentation/display/current/HTTP +运输+参考