Thanks, Peter; I know I can get away with that. You can actually get away with
quite a bit less:
| final InitialContext ic = new InitialContext(new Hashtable() { {
this.put(Context.PROVIDER_URL, "localhost"); } });
|
...if everything has been set up for the defaults.
It looks like the ans
The following works for me:
Hashtable env = new Hashtable();
| env.put(Context.INITIAL_CONTEXT_FACTORY,
| "org.jnp.interfaces.NamingContextFactory");
| env.put(Context.PROVIDER_URL, "localhost:1099");
| Context ctx = new InitialContext(env);
I do agree with your comment that the s