[jboss-user] [Security & JAAS/JBoss] - Re: EJB3 and remote client EJB access

dhartford do-not-reply at jboss.com
Tue Oct 24 11:15:08 EDT 2006


so....
Also tried "org.jboss.security.jndi.JndiLoginInitialContextFactory" without the AppcallbackHandler

	   Properties env = new Properties();
  | 	   env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
  | 	   env.put("java.naming.provider.url", "jbossserver:1099");
  | 	   env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); 
  | 	   env.setProperty(Context.SECURITY_PRINCIPAL, "username");
  | 	   env.setProperty(Context.SECURITY_CREDENTIALS, "password");
  | 
  | 	   InitialContext results = null;
  | 	   try{
  | 		  results = new InitialContext(env);
  | 	   }catch(Exception e){
  | 		   e.printStackTrace();
  | 	   }
  | 

And still getting

java.io.NotSerializableException: com.sun.jndi.ldap.LdapCtx

Is this the wrong forum or am I just doing something really wrong?

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

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



More information about the jboss-user mailing list