[jboss-user] [Security & JAAS/JBoss] - Re: Getting Exception while trying to access a Stateless EJB

jaikiran do-not-reply at jboss.com
Mon Dec 11 05:35:40 EST 2006


anonymous wrote :  Properties props = new Properties();
  | 
  | props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
  | props.put(Context.PROVIDER_URL,"jnp://localhost:8080");
  | Context ctx = new InitialContext(props); 

This should be:

Properties props = new Properties();
  | 
  | props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.PROVIDER_URL,"jnp://localhost:1099");
  | Context ctx = new InitialContext(props); 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992726#3992726

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992726



More information about the jboss-user mailing list