This content has been marked as final.
Show 2 replies
-
1. Re: Authentication Failure
pdgillen Oct 17, 2007 4:29 PM (in response to pdgillen)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); -
2. Re: Authentication Failure
pdgillen Oct 19, 2007 4:02 PM (in response to pdgillen)So that worked. Next I wanted to externalize the uid/pwd, i.e. remove the hard-coded values. For that see:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121632