Help coderanch get a
new server
by contributing to the fundraiser
  • 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB - JNDI name

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi-
I have been going thru some fundamental concepts behind EJB. I am not able to figure out the reasoning behind the following point:
JNDI name is a unique identifier of the ejb. This attribute resides in the vendor specific xml descriptor. Why is the unique identifier like jndi name not part of the standard ejb deployment descriptor?
Thanks,
-Pawan.
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pawan,
ejb can be identified through local namespace as well as jndi global namespace. local namespace such as java:comp/ejb/xxxBean is the preferred way to look up ejbs in the container since it will resolve the potential name conflict. It is cross J2EE app servers. Therefore it is defined in the ejb-jar.xml as ejb-ref-name tag using ejb/xxxBean naming convention. While jndi is specific to the application server, so it is defined in the app server specific xml file.
Hope it helps
 
A tiny monkey bit me and I got tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic