Originally posted by Jimmy:
The name that we use to identify EJBs while looking up is the JNDI name.
Can we do the lookup with some other name. I have read in many places that
we use EJB Home Name. What does that mean?
The thing you're looking up is always an implementation of the EJB's home interface. That fact was probably where the "EJB Home Name" originated from (although I don't remember hearing that term).
The actual name being used for looking up the home interface can be of two types, however: a
real or
logical JNDI name. A real JNDI name is the name with which the object is actually bound to the application server's JNDI tree. A logical name is a name that is used by the EJB making the lookup and is mapped to a real name in the deployment descriptors. This indirection enables the bean developer to not worry about whether the JNDI name he uses in his
Java code is available in the deployment environment or not.