aspose file tools*
The moose likes JBoss/WildFly and the fly likes jms highst priority value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jms highst priority value " Watch "jms highst priority value " New topic
Author

jms highst priority value

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 197
Hi,

Does the DEFAULT_PRIORITY (4) is the highst priority value ?

Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

A little more information might help, like what file/context are your seeing/setting this in? An example would be good.


JBoss In Action
Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
Sorry,

I have two "clients/senders" that are using the same queue , I need to give a higher priority when sending the message in the queue for one of them (each sender as is on priority that I define).



From what I understand the highest priority is the DEFUALT_PRIORITY (message with priority 4 as preference on message with priority 7 ), am I right ?
Also , how can I monitor the messages in the queue ?

Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

I have no idea of the class that "sender" is an instance of, nor do I know what the "send" method does.

I assume that at some point your code calls javax.jms.Message.setJMSPriority(). Looking at a book I have on JMS, it mentions that priority numbers range from 1 to 9. That is also mentioned here:
http://ideareboot.com/blogs/index.php/2008/07/05/jms-ensuring-reliability-part-2/
Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jms highst priority value