To use a custom jndi.properties file, specify the path to the file in one of the following ways:
Use the Admin Console. In the developer profile, select the Application Server component and select the JVM Settings tab. In the cluster profile, select the JVM Settings component under the relevant configuration. Then select the Path Settings tab and edit the Classpath Prefix field. For details, click the Help button in the Admin Console.
Edit the classpath-prefix attribute of the java-config element in the domain.xml file. For details about domain.xml, see the Sun Java System Application Server 9.1 Administration Reference.
This adds the jndi.properties file to the Shared Chain class loader. For more information about class loading, see Chapter 2, Class Loaders.
For each property found in more than one jndi.properties file, the Java EE naming service either uses the first value found or concatenates all of the values, whichever makes sense.