我们可以基于消息属性或报头对ActiveMQ消息进行优先级排序吗? [英] Can we prioritize ActiveMQ messages based on message properties or headers?

查看:157
本文介绍了我们可以基于消息属性或报头对ActiveMQ消息进行优先级排序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是

我在消息上设置了一些应用程序特定的属性,我希望基于这些特定的属性值
对消息进行优先级排序,例如:

I am setting few application specific properties on messages and i want the messages to be prioritized based on those specific property values For example :

Message message = session.createTextMessage("hello world!");
message.setStringProperty("myProperty","100");
producer.send(message )

在此,我希望消息的优先级基于 myProperty

Here I want messages to be prioritize based on value of myProperty. Is this possible?

推荐答案

ActiveMQ不支持基于任意消息头/属性对传递进行优先级排序。仅支持 JMSPriority 作为优先消息传递的方法。

ActiveMQ doesn't support prioritizing delivery based on arbitrary message headers/properties. Only JMSPriority is supported as a way to prioritize message delivery.

这篇关于我们可以基于消息属性或报头对ActiveMQ消息进行优先级排序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆