What is JNDI port?
JNDI stands for Java Naming and Directory Interface and a JNDI port is simply the port to which this particular API communicates with. The JNDI port may also be the same port that is in communication with the JRun server which is also part of the Java package or software suite. Under the Java platform or environment, a port exclusive for JRun or JNDI servers is necessary for communication.
JNDI or Java Naming Directory Interface is Java’s version of directory service wherein application or software clients can basically search information and objects by using names. Through the JNDI service or server, one can lookup a particular name and get more details and information on it much like a typical directory lookup service offered by telecommunications companies for example. The good thing about JNDI is that it can run independently from any underlying implementation of other Java-based programs and it allows the use of a database, a simple flat file, or a dedicated server depending on the vendor preference.
But even if JNDI can run independently from other Java applications and software, it can also interact and work with other Java services in performing its directory services. One such other platform is the Java EE or Java Platform Enterprise Edition which helps with component location and organization. Another Java API that can work with Java Naming and Directory Interface is Java RMI or Java Remote Method Invocation which is involved in remote procedure calls.
In typical installations, the JNDI port is automatically assigned for the JRun or JNDI server to run and listen to. To check on which port number is used for this particular application, the JNDI properties file may be viewed for checking. But configuring the port for JNDI is quite simple; the high random port for Java RMI may cause some technical difficulty for others. In these cases, expert advice may be necessary to properly configure courts for various Java applications to run.