Hello,
I'm creating a custom login module and principal based on the references of jboss wiki. When a client tries to access my beans I use the following:
env.setProperty(Context.SECURITY_PRINCIPAL, "user"); env.setProperty(Context.SECURITY_CREDENTIALS, "pass"); env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory"); Context context = new InitialContext(env); ISayHello talk = (ISayHello) context.lookup("myapp/ejb/SayBean"); System.out.println(talk.sayHello());
I figured out JACC can help me out on this. Can anyone point me to a tutorial on how to use JACC with my custom login module?
Thanks