Unexpected element 'message-selector' in ejb-jar.xml on EAP 6/7

Solution Verified - Updated -

Issue

We are migrating our app from EAP 5 to 6. We have an ejb-jar.xml and jboss.xml which has a message driven bean. This is giving errors when I deploy to EAP 6. It is unable to parse the message-selector element (Message: Unexpected element 'message-selector' encountered"). Please advise how to fix this issue.

Environment

Red Hat Enterprise Application Platform (EAP) 7.x
Red Hat Enterprise Application Platform (EAP) 6.x

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