为此使用流程:
<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"/>
具有Active-MQ的Mule发布/订阅模型。如何在Active-MQ JMS中到达消息后以异步方式调用tomcat-consumers
为此使用流程:
<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"/>