Change Default JNDI Location for an EJB in JBoss EAP 4 and 5
Issue
-
By default, EJBs are named <ear-file-name>/beanName/{remote|local}. Is there a simple way (without listing each EJB) to change that first qualifier, now based on ear-file-name, to something else?
-
We use Maven so a project version stamp change means that the fully qualified name of the EJB / DAO will change and cause the EJB JNDI name to change each time, is there a way to fix this to not be dependent on the deployment's name?
Environment
- JBoss Enterprise Application Platform (EAP) 5.x
- JBoss Enterprise Application Platform (EAP) 4.3.0_CP0x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
