[jboss-user] [EJB 3.0] - Re: RolesAllowed causes exception on client with JBoss5

jaikiran do-not-reply at jboss.com
Wed Jan 28 08:35:00 EST 2009


anonymous wrote : Properties p = new Properties();
  | 		//p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
  | 		p.setProperty("java.naming.factory.initial", "org.jboss.security.jndi.JndiLoginInitialContextFactory");
  | 		p.setProperty("java.naming.provider.url","localhost:1099");
  | 		p.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
  | 		p.setProperty(Context.SECURITY_PRINCIPAL, "kermit");
  | 	    p.setProperty(Context.SECURITY_CREDENTIALS, "thefrog");
  | 

This has changed in JBossAS-5. Checkout the EJB3 "security" tutorial to see how its done now http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/docs/tutorial/security/

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

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



More information about the jboss-user mailing list