This discussion is archived
0 Replies Latest reply: Jun 10, 2013 4:49 AM by Vinay Krishnan RSS

Destination Sorting Key - not sorting under load

Vinay Krishnan Newbie
Currently Being Moderated

I have configured a Destination Sorting Key on one of my JMS Queue and it is sorting based on JMSPriority set in the JMS Message Header. The sorting works fine when I test it with a few messages. I am firing messages with priority 9 and 4. When I run a load test with 50-60 messages(both 9&4) , I can see that sorting is happening but its not effective. I still get lower priority messages before the higher priority messages when I read the queue.


What i understand is that messages will be pushed as FIFO only but the Destination Sorting Key makes sure it changes the order of the messages in the queue itself before I read the messages.


Is it possible to sort the messages effectively in the Queue?



Vinay Krishnan


  • Correct Answers - 10 points
  • Helpful Answers - 5 points