getJMSPriority

 

public int getJMSPriority() throws JMSException;

Gets the message priority.

JMS defines ten levels of priority with 0 as the lowest and 9 as the highest. In addition, clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority.

JMS does not require that a provider strictly implement priority ordering of messages; however, it must do its best to deliver expedited messages ahead of normal messages.

Returns

  • the default message priority

Exceptions

  • JMSException - if an internal error occurs.


uj26560_