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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content