This content has been marked as final.
Show 3 replies
-
1. Re: Intial context Problem
cdkcdk Aug 27, 2002 10:35 AM (in response to sripad)What command do you use to execute your client ?
-
2. Re: Intial context Problem
tbfmicke Aug 28, 2002 7:51 AM (in response to sripad)
> 2.I did put folloing files in class path.
...
> C:\Hello World\resources\jndi.properties
The file itself should not be in the classpath, only the directory containing the file.
Regards -
3. Re: Intial context Problem
jaime Aug 28, 2002 3:51 PM (in response to sripad)Try
System.setProperty( "java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
System.setProperty( "java.naming.provider.url","localhost:1099");
System.setProperty( "java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces)
Context ctx = new InitialContext( );
....
JaimeS