Hello,
I am running
JBoss 3. I have a client connecting to it as -
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NaminContextFactory";
env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
Context ctx = new InitialContext(env);
I run it as
java -Djava.naming.factory.url.pkgs=org.jboss.naming Client
I get an error as
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an
applet parameter, or in an application resource file: java.naming.factory.initial
Any help would be much appreciated.
Thanks a lot.