Pheonix
Pheonix

Reputation: 21

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

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?

Upvotes: 0

Views: 124

Answers (1)

Justin Bertram
Justin Bertram

Reputation: 35008

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

Upvotes: 1

Related Questions