I am confused as in JNDI namespace the bean is registered as BookTestBean ,so why author has added /remote in front of
bean name to create the RemoteJNDIName?
How and why the server is able to find the ejb BookTestBean/remote whereas the bean is registered as BookTestBean.
Joined: Aug 21, 2008
I found the answere of my question on Jboss community documentation :
Chapter 18. Binding your beans in JNDI
By default, when the application is deployed in a jar, session beans will bind to JNDI in the form ejbName/remote for remote interfaces
and ejbName/local in the case of local interfaces. When the EJBs are deployed in an .ear file, the default jndi binding will be prepended
by the name of the .ear file. So if the ear file name is foo.ear the default jndi names would be foo/EJB-NAME/remote and foo/EJB-NAME/local.
You can override this behavior by defining your own @org.jboss.ejb3.annotation.LocalBinding and/or @org.jboss.ejb3.annotation.RemoteBinding.
I got no replies for this question and I thought it was a stupid question , but it wasn't