This content has been marked as final.
Show 3 replies
-
1. Re: Does setJMSPriority() actually do anything?
homerlex Oct 2, 2007 11:19 AM (in response to homerlex)Hmm, I'm looking at the messages in the JMX Console and they all have a priority of 4 so it seems that setJMSPriority is not actually setting the priority.
The section of code setting the priority looks like this:
// priority is set to an int in code above the following:
ObjectMessage objMsg = outboundSession.createObjectMessage(jmsMsg);
objMsg.setJMSPriority(priority);
msgSender.send(objMsg); -
2. Re: Does setJMSPriority() actually do anything?
homerlex Oct 2, 2007 11:45 AM (in response to homerlex)OK - I found that using setPriority on the MessageProducer does the job. Is the "proper" way to do it? Does setJMSPriority() on ObjectMessage actually do anything?
-
3. Re: Does setJMSPriority() actually do anything?
adrian.brock Oct 5, 2007 10:14 AM (in response to homerlex)No, it's an FAQ, read the spec.