How to specify a custom EJB JNDI binding name in JBoss EAP
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.xml
does 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.LocalBinding
andorg.jboss.ejb3.annotation.RemoteBinding
in JBoss EAP 6? -
Is it possible with a configuration file to change the
JNDI-Name
of that automatically scanned EAR
a.ear -> java:app/b instead of a.ear -> java:app/a
-
Where is the
RemoteBinding
annotation class located in the Red Hat JBoss EAP 6.2.2 distribution? -
In our JBoss 5 EAP environment we applied JBoss specific annotations
@LocalBinding
and@RemoteBinding
from the org.jboss.ejb3.annotation namespace. We are porting our code to JBoss 6 EAP we need to know how to handle those annotations. -
Many web services that are bound to the JNDI tree with @LocalBinding annotation that had dependencies on an EJB jar that came bundled in JBoss EAP 5. It is not in EAP7. What is the standard practice of replacing this annotation short of rewriting all of the JNDI tree bindings?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.