JNDI noInitialContext Error
I am building a simple JMS client but can not get it to run on remote machines
because it cannot find the JNDI provider. ("Jndi lookup fails")
Using Netbeans 5.5, Sun Application Server (9) on XP.
What do I need to install on the client machines to get the JNDI lookup and JMS clients to work? They already have the JRE 1.5.0_08.
I have already tried setting the environment:
String hostserver ="ServerNameHere";
Hashtable env =new Hashtable();
env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
env.put("java.naming.provider.url","iiop://" + hostserver +":"+3700);
but that does not seem to do anything.
I have read about JNDI.properties file but I do not have one nor do I know where to put it. note: there is not one in my j2ee.jar(this file is empty) or my javaee.jar files.
Thanks

