• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

EJB loookup

 
Ranch Hand
Posts: 354
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic