小编典典

具有Active-MQ的Mule发布/订阅模型。如何在Active-MQ JMS中到达消息后以异步方式调用tomcat-consumers

tomcat

如何使用Active-MQ实现JMS发布/订阅模型。我有一个入站JMS Active-
MQ队列/主题,所有消息都在其中。另一方面,我有几个出站消费者(Tomcat-Http)。我想以这样一种方式实现发布/订阅模型:一旦我在Active-
MQ中收到一条消息,它将以异步方式调用所有tomcat消费者。

有什么办法可以在Mule中实现上述模型?


阅读 409

收藏
2020-06-16

共1个答案

小编典典

为此使用流程:

<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"/>

阅读以下链接以获取更多信息:

2020-06-16