• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB loookup  RSS feed

 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jimmy,
Our naming policy requires a last name as well, so I'll have to ask you to change your display name accordingly.
Thanks.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!