This content has been marked as final.
Show 2 replies
-
1. Re: InitialContext error
pvamstel Nov 11, 2002 2:11 AM (in response to megaskins)Try this
Hashtable environment = new Hashtable();
environment.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
environment.put("java.naming.provider.url","localhost:1099");
environment.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
InitialContext initial = new InitialContext(environment); -
2. Re: InitialContext error
megaskins Nov 11, 2002 7:12 AM (in response to megaskins)Thanks for the response. I'll try this to see if it works.
I was wondering though, why I can't read these properties from the jndi.properties file? I already have all these properties specified in that file - any ideas?