JNDI stands for Java Naming and directory interface is a Application programming interface (API).It provides naming and directory functionality to application written using the Java. It is independent of any specific directory service implementation so it can be accessed in a common way. It is mainly used to set up a database connection pool on a Java EE application server. Any application that’s deployed on that server can gain access to the connections they need using the JNDI name java:comp/env/FooBarPool without having to know the details about the connection.
A naming service maintains a set of bindings. Bindings relate names to objects. All objects in a naming system are named in the same way (that is, they subscribe to the same naming convention). Clients use the naming service to locate objects by name. There are different existing naming services, few of which are detailed below. Common Object Services Naming (COS): The naming service for CORBA applications; allows applications to store and access references to CORBA objects. Domain Name System (DNS): The Internet’s naming service; maps people-friendly names (such as www.xxx.com) into computer-friendly IP (Internet Protocol) addresses in dotted-quad notation (207.69.175.36)Interestingly, DNS is a distributed naming service, meaning that the service and its underlying database is spread across many hosts on the Internet. Lightweight Directory Access Protocol (LDAP): LDAP developed by the University of Michigan; as its name implies, it is a lightweight version of DAP (Directory Access Protocol), which in turn is part of X.500, a standard for network directory services. Currently, over 40 companies endorse LDAP. Network Information System (NIS) and NIS+: NIS developed by Sun Microsystems. Both allow users to access files and applications on any host with a single ID and password.Who should use JNDI?
Can you explain Naming service?
Can I use JNDI now?
Where is JNDI being used in the Java platform?
Who will provide implementations of JNDI?
What protocols does JNDI provide an interface to?
How does JNDI relate to LDAP?
How does JNDI relate to Netscape's Java LDAP API?
How does JNDI relate to OMG's CORBA standards for naming?
How does JNDI relate to Microsoft's ADSI?
What is XFN and how does this relate to JNDI?
What about security?
Explain what is a naming service in JNDI?
What is a naming service?
What is a directory service?
How does JNDI relate to LDAP?
Explain the importance of JNDI?
Explain why we need JNDI if communication to systems via LDAP is possible?
What is an applet? How does applet differ from applications?
Can you explain core interface of JNDI?
No Comments