我们可以根据消息属性或 headers 对 ActiveMQ 消息进行优先级排序吗?
Can we prioritize ActiveMQ messages based on message properties or headers?
这是
的后续问题
我正在为消息设置一些特定于应用程序的属性,我希望根据这些特定的 属性 值对消息进行优先级排序
例如:
Message message = session.createTextMessage("hello world!");
message.setStringProperty("myProperty","100");
producer.send(message )
在这里,我希望根据 myProperty
的值对消息进行优先排序。这可能吗?
ActiveMQ 不支持基于任意消息的优先级传递 headers/properties。仅支持 JMSPriority
作为消息传递优先级的方式。
这是
我正在为消息设置一些特定于应用程序的属性,我希望根据这些特定的 属性 值对消息进行优先级排序 例如:
Message message = session.createTextMessage("hello world!");
message.setStringProperty("myProperty","100");
producer.send(message )
在这里,我希望根据 myProperty
的值对消息进行优先排序。这可能吗?
ActiveMQ 不支持基于任意消息的优先级传递 headers/properties。仅支持 JMSPriority
作为消息传递优先级的方式。