How to specify a custom EJB JNDI binding name in JBoss EAP 6
Issue
- Is there a replacement for the
"/jboss/enterprise-beans/session/jndi-name"element in the"jboss.xml"from EAP 4.3. I hoped to get some way to introduce my own global remote EJB names. -
Will be in EAP 6 GA a replacement for the old
"/jboss/enterprise-beans/session/jndi-name"that was in jboss.xml in JBoss EAP 4 and JBoss EAP 5? -
We are running an application we cannot modify on EAP 5, which looks up EJBs in JNDI. When we try to bind
"ejb/MyEjb"into the global namespace, JBoss reports fails with the error:
JBAS011864: Invaliding binding name /ejb/MyEjb, name must start with one of [java:global, java:jboss, java:/]
-
Binding the entries via the
web.xml/jboss-web.xmldoes not work, since the application looks up"ejb/MyEjb"not"java:comp/env/ejb/MyEjb". Is there any way of configuring JBoss so that the application can look up"ejb/MyEjb"? -
Where are the annotations
org.jboss.ejb3.annotation.LocalBindingandorg.jboss.ejb3.annotation.RemoteBindingin JBoss EAP 6? -
Is it possible with a configuration file to change the
JNDI-Nameof that automatically scanned EAR
a.ear -> java:app/b instead of a.ear -> java:app/a
-
Where is the
RemoteBindingannotation class located in the Red Hat JBoss EAP 6.2.2 distribution? -
In our JBoss 5 EAP environment we applied JBoss specific annotations
@LocalBindingand@RemoteBindingfrom the org.jboss.ejb3.annotation namespace. We are porting our code to JBoss 6 EAP we need to know how to handle those annotations.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
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.
