This discussion is archived
2 Replies Latest reply: Nov 29, 2011 2:50 AM by robert224810 RSS

Weblogic JMS Queue - Priority

robert224810 Explorer
Currently Being Moderated
Hi all,
I am using WebLogic Server Version: 10.3.5.0 in a clustered environment.
I am using a Uniform Distributed Queue. I have been investigating enqueueing a large number of messages and trying to get them to be dequeued in order of priority.
I have successfully set the JMSPriority property in the messages and when I view the messages in the weblogic console I can see the priority.
My composite to Dequeue uses the Oracle JMS Adapter and I have configured it as a singleton. However I have found that it processes my messages in the order they are enqueued not the priority order.
Reading through the docs I found the following: ‘Currently, WebLogic JMS does not honor message priority.’ (http://www.inf.fu-berlin.de/lehre/WS00/SWT/BEA/documentation/docs51/classdocs/API_jms.html)
This is documentation for 5.1. Does weblogic server 10.3.5.0 support priorities and if so can anyone point me at documentation?
Thanks
Robert
  • 1. Re: Weblogic JMS Queue - Priority
    653697 Journeyer
    Currently Being Moderated
    By default, the messages in a queue are in FIFO order, even if the messages have a different priority. In order to for the messages to be sorted by their priority, you need to set a sorting key on the destination.

    For details, please refer to
    http://docs.oracle.com/cd/E17904_01/web.1111/e13738/basic_config.htm#i1177256
  • 2. Re: Weblogic JMS Queue - Priority
    robert224810 Explorer
    Currently Being Moderated
    Hi,
    Thanks for your response. On re inspection of the screen I can see the Destination Key boxes. There are two list boxes with arrows to push items from Destination Keys Available to Destination Keys Chosen. The problem is that there are no items in the list boxes.
    I found out I needed to create a new resource called a destination sort key and then I had an item in the box to select! It’s all working now – thanks for your help.
    Robert

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points