Java Glossary : JNDI

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : J words : JNDI.

JNDI
Java Naming and Directory Interface. A multi-platform way to get at directories and files. It is used by EJB to find objects. It also lets you get at the DNS records, e.g. the MX record that lets you find out the mailserver corresponding to a given domain. See the javax.naming.directory package. JNDI is a very general purpose directory scheme. It handles: LDAP, DNS, NIS, NDS, RMI and CORBA, which ability to plug in more.

To get at DNS information you create URLs like this: dns://mynamerver.com/mindprod.com. You feed these strange URLs to javax.naming.directory.Attributes.DirContext.getAttributes(). This is a double barrel URL:

  1. The first part is DNS server that:
    1. you are permitted to use.
    2. has up to date info on the domain of interest.
    3. Is reasonably close by.
    It may be specified as a domain name or as an IP.
  2. The second part after the / is the domain whose mail server or other DNS information interests you. You must specify the domain name, not the IP of a server in the domain.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1490.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/jndi.html J:\mindprod\jgloss\jndi.html