I have problems setting message priorities via nms. The messages are sent to the queue everything is ok but the priority is ignored.
I use the following code:
message.NMSPriority = MsgPriority.High;
Regardless what value I set for message priority, using the ActiveMQ browser I can see that the priority is always set to 4.
I also tried to add some raw headers like:
message.Properties["priority"] = 2;
message.Properties["PRIORITY"] = 5;
message.Properties["NMSPriority"] = 7;
message.Properties["JMSPriority "] = 9;
But it doesn't help.
I also have added the attribute
prioritizedMessages="true"
to the activemq.xml file. And I can send a message with priority manually via the ActiveMQ browser.
So where is the problem? What I am doing wrong?