NoInitialContextException: in ejb 3
- by JavaDeveloper
My client class code
Hashtable hs = new Hashtable();
hs.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
hs.put(Context.PROVIDER_URL, "jnp://10.20.52.41:1200");
hs.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
Context context = new InitialContext(hs);
…