[jboss-user] [Beginners Corner] - Re: Authentication Failure

pdgillen do-not-reply at jboss.com
Wed Oct 17 16:29:01 EDT 2007


This apparently works:

Properties            props   = new Properties();        
props.setProperty(InitialContext.SECURITY_PRINCIPAL, "foo");
props.setProperty(InitialContext.SECURITY_CREDENTIALS, "bar");
props.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
InitialContext        ctx     = new InitialContext(props);
			
Object                fbObj  = ctx.lookup("foo/bar/Manager");
FooBar   fb = (FooBar) PortableRemoteObject.narrow(fbObj, FooBar.class);



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

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



More information about the jboss-user mailing list