To install and configure Simple-JNDI

  1. Download Simple-JNDI version 11.4.1 or later from the osjava Open Source Java components Web site.
  2. Extract all files to the root directory you created for your JDBC resources. See JDBC Resources for details.
  3. Using any text editor, create a jndi.properties file, also in your JDBC resources root directory, containing the following:
    java.naming.factory.initial=org.osjava.sj.SimpleContextFactory
    org.osjava.sj.root=jdbcRootDirectory
    blankLine
    Where:
    • jdbcRootDirectory is the full path to the root directory, using double single slash characters in place of single characters. For example:

      For /home/jdbcrsc, specify /home/jdbcrsc/.

    • blankLine is a blank line immediately following the jdbcRootDirectory specification.
  4. If you would prefer that your project access the jndi.properties file from a zip archive, compress the file into an archive with a .zip file extension, and save it to the jdbcRootDirectory.