I'm using JBoss and in my
test classes I initialize the Context like this:
java.util.Hashtable JNDIParm = new java.util.Hashtable();
JNDIParm.put(Context.PROVIDER_URL, "localhost");
JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
return new InitialContext(JNDIParm);
Also, if you want to make any Remote interface available you have to add it here also...