对请求进行应答的Mule占用了JMS应答队列中的所有消息 [英] Mule request-reply consuming all the messages in the JMS reply queue
本文介绍了对请求进行应答的Mule占用了JMS应答队列中的所有消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Mule Request-Reply模式中,JMS入站端点正在使用队列中的所有消息. 我如何避免这种m子的行为. 这是我的流程
In Mule Request-Reply pattern, JMS inbound endpoint is consuming all the messages in the queue. how can i avoid this behavior of mule. here is my flow
<request-reply timeout="100000">
<jms:outbound-endpoint queue="request"
connector-ref="Active_MQ" exchange-pattern="one-way" doc:name="JMS- REQUEST" disableTemporaryReplyToDestinations="false" >
<message-properties-transformer>
<delete-message-property key="MULE_REPLYTO"/>
</message-properties-transformer>
</jms:outbound-endpoint>
<jms:inbound-endpoint queue="reply"
connector-ref="Active_MQ" exchange-pattern="one-way" doc:name="JMS-REPLY"/ >
回复"队列中的所有消息均被使用,而与相关性ID无关. 任何帮助表示赞赏.
All the messages in 'reply' queue is consumed irrespective of Correlation Id. Any help is appreciated .
推荐答案
尝试在JMS入站端点上使用选择器:
Try using a selector on the JMS inbound endpoint:
<jms:inbound-endpoint queue="reply"
connector-ref="Active_MQ" exchange-pattern="one-way"
doc:name="JMS-REPLY"/ >
<jms:selector expression="JMSCorrelationID=#[message.correlationId]"/>
</jms:inbound-endpoint>
这篇关于对请求进行应答的Mule占用了JMS应答队列中的所有消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文