I have a question on the jaas_howto example?
We have an HTML, which calls a servlet, which creates an EJB. There is also a SessionClient with a main() method. When exactly is this SessionClient client called, and how?
Why in the build file it takes as parameters the username and password and also why when setting the LoginContest it uses "TestClient"
lc = new LoginContext("TestClient", handler);
instead of "example1" defined in the auth.conf?
The client uses the Jboss client JAAS config file, and, if the first LoginContext parameter is not defined in this file it uses the "other" label.
Therefore in this case the client will use org.jboss.security.ClientLoginModule.