public InitialContext getInitialContext() throws NamingException
{
Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
//environment.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
environment.put(Context.PROVIDER_URL, "jnp://localhost:1099/");
return new InitialContext(environment);
}
ck this code it can help u
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249978#4249978
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249978
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user