Can we prioritize ActiveMQ messages based on message properties or headers?

ぐ巨炮叔叔 提交于 2019-12-11 14:17:29

问题


This is followup question on this

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 )

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


回答1:


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



来源:https://stackoverflow.com/questions/56133857/can-we-prioritize-activemq-messages-based-on-message-properties-or-headers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!