EJB programming & troubleshooting: local jndi name in JBOSS
I have an stateless EJB deployed on JBOSS.
This EJb has local and remote interfaces.
In the jboss.xml file I declared the same name as
jndi-name and local-jndi-name.
The problem is that anytime I try to get a reference to
the localHome interface I actually get reference to
the home (remote) interface.
I use the default InitialContext since my client
is on the server side.
My question is : Could I use the same name
as jndi-name and local-jndi-name?
You must use different names.