Unable to set priority on JMS message in JBoss EAP

Solution Verified - Updated -

Issue

When we send a message, for some specific scenario, the messages have to be delivered in a priority-based manner.  Therefore, we set the priority in the message as follows:

TextMessage textMessage = queueSession.createTextMessage(message);
textMessage.setJMSPriority(msgPriority);

But on the MDB side, the messages are delivered with the same default priority.

Environment

JBoss Enterprise Application Platform (EAP) 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.