Results 1 to 6 of 6
Thread: Jms
- 03-22-2010, 12:10 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 90
- Rep Power
- 0
- 03-22-2010, 12:41 PM #2
Member
- Join Date
- Jan 2010
- Posts
- 90
- Rep Power
- 0
any quick reply guys?
- 03-23-2010, 09:10 AM #3
Member
- Join Date
- Jan 2010
- Posts
- 90
- Rep Power
- 0
is this not the right forum for jms?
- 03-23-2010, 10:08 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
You set the priority on the MessageProducer.send method
i.e
Note that the JMS provider is not mandated to do anything with those priorities.Java Code:producer.send(message, DeliveryMode.PERSISTENT, priority, 0);
- 03-23-2010, 10:25 AM #5
Member
- Join Date
- Jan 2010
- Posts
- 90
- Rep Power
- 0
this is the way i am setting the priority and sending the message.
[CODE]newMessage.setJMSPriority(pLevel);
jmsQueueSender.sendMessage(newMessage);[/QUOTE]
and here i am not able to set the "pLevel" to anything other than 0-9.
Hope, i am able to make my question clear.
- 03-23-2010, 10:34 AM #6
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
That is the wrong approach. The correct approach is what I have shown you above. That setter should not be used by you (it's used by the container). It's just ignored if you set it yourself.
You can only set the levels to between 0-9. Why do you need other levels?
As I said before too, remember this property may be ignored so don't bank your life savings on it.


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks