Re: problems with priorities
Kulvir Bhogal <[email protected]> Thu, 6 May 2004 11:15:17 -0700 (PDT)
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
I think I have narrowed down the problem... it seems as though that when you set a JMSpriority for a message, it does not get set. I tried this out with the following simple code:
TextMessage messageOne = topicSession.createTextMessage();
messageOne.setText("Message #1 - Priority 9 - Sport: Basketball");
messageOne.setJMSPriority(9);
topicPublisher.publish(messageOne);
System.out.println(messageOne.getJMSPriority());
One would think that you would get a priority of 9.
However, I am getting back a priority of 4.
This seems to be a bug. Has anyone else experienced this?
~Kulvir