> Date: Sat, 8 Jul 2000 15:16:50 -0500
> From: Rich Johns <[EMAIL PROTECTED]>
> Subject: InitialContext and jndi.properties
> To: [EMAIL PROTECTED]
>
> If I do this:
>
> InitialContext ic = new InitialContext();
>
>
> What does naming do wrt to jndi.properties? Does it first
> check system properties for these properties:
>
> java.naming.factory.initial
> java.naming.provider
>
> and if it finds them I assume it will use them. But, if it does not
> find them, does it then look for jndi.properties file in the classpath?
>
Yes, that's correct. jndi.properties can also be located in the 'lib'
directory of the JRE.
See the javadoc for details (search for 'environment').
http://java.sun.com/j2se/1.3/docs/api/javax/naming/InitialContext.html
http://java.sun.com/j2se/1.3/docs/api/javax/naming/Context.html
_____________________
Rosanna Lee
Java Software, Sun Microsystems, Inc
[EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".