IntelliJ Java IDE
The moose likes Ant, Maven and Other Build Tools and the fly likes Priority in JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Priority in JMS" Watch "Priority in JMS" New topic
Author

Priority in JMS

Maruthi Prasad
Greenhorn

Joined: May 05, 2004
Posts: 2
I want to implement JMS with one queue. I want the messages to be consumed based on priority, for example
If I have 3 message which have priorites 2,3, and 4, the messages will be consumed accordingly but when a new message is added to the queue, the application will decide what would be the priority of that message and say it assigns priority 1 then this messaage has to be consumed first (which will be done).
My question is - if before the msg with priority 1 is consumed another msg with priority 2 is added so that we have 2 msgs with priority 2 then after the first msg is consumed it should consume the first (earlier) msg with priority 2 and then the second msg.
Is this the way it operates or how else does it happen. I am in the design stage and so want to undersand this. Can some one help me in clarifying this?
Thanks in advance!
 
 
subject: Priority in JMS
 
Threads others viewed
JMS Priority
MDB listening to external MQ in Glassfish
Message Driven Bean is unable to connect to the JMS Destination
JMS - how to remove a message from Queue
JMS Priority
IntelliJ Java IDE