Steps for Generating Code With JNDI

The JNDI module generates most of the code that a Java class needs to access a naming or directory service via JNDI. The procedures for using the module to generate code you can use in a program are outlined below:

  1. Determine what you are trying to accomplish. The questions you need to answer include:
  2. Access the naming or directory service with the JNDI Browser. The browser will represent the contents of the service as a tree of nodes in the IDE.
  3. Using the browser, navigate through the naming or directory service, and locate the item you want to look up or the context in which you want to bind a new entry.
  4. Using the browser's context menu, generate lookup or binding code. Paste it into your program.
  5. Run and test your programs.
See also
JNDI Concepts
Connecting to a Naming Directory or Service
Generating Code With the JNDI Browser
JNDI Browser Commands

Legal Notices