• 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

a JNDI basic doubt

 
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are we supposed to have a special software for creating JNDI name?

And How do we know that JNDI is created for me to look up the object in my EJB program?

and where does these names, contexts stay in? (web server or application server or databse or anywhere else?)

Thanks in advance
regards,
rahul roy.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JndiBindiBoBindi....


When components like EJBs are deployed, they have JNDI names attached to them, although the names are usually very uninteresting, such as the package/class name of the EJB. When you create/deploy a datasource, similarly, you provide a JNDI name for the resource to be looked up with.

A J2EE applicaiton server maintains a Naming Service. It's required by any J2EE application server. We don't have to worry too much about it. Because people much smarter than us implement it and design the naming service, it should never fail and never go down. At least that's the J2EE promise.

How is a Java Naming service implemented? Well, it's up to the vendor. As long as it conforms to the JNDI spec, vendors can do it any way they want. In my opinion, I think the big blue JNDI server looks an awful lot like the big blue CORBA naming service, but that's purely speculation.


Wouldn't you know it, but I've got a link on my website that talks all about naming:

http://www.technicalfacilitation.com/get.php?link=naming

Some of the stuff is WebSphere specific, but most of it is really just J2EE and JNDI general stuff.

Happy Naming!

-Cameron
 
reply
    Bookmark Topic Watch Topic
  • New Topic