In this tutorial the the remote interface for a session bean is BookTestBeanRemote and implementing class name
is BookTestBean. This class has a variable
public static final String RemoteJNDIName = BookTestBean.class.getSimpleName() + "/remote";
The client program look for this name in context.lookup i.e
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.
Thanks.
Prabhat Jha
Ranch Hand
Joined: Aug 13, 2007
Posts: 58
posted
0
Remote and Local automatically gets alligned to <Bean-Name>Remote and <Bean-Name>Local JNDI