Hi,
From the client side, we need a "login" module
which ONLY authenticates a user. In jboss, the authentication is not excute
unless a secured ejb method is called. Please take a look of the following
client code, if we commented from
try{
InitialContext iniContext
= ...
The user is not authenticated at all.
try
{ AppCallbackHandler handler = new AppCallbackHandler(name, password); LoginContext lc = new LoginContext("TestClient", handler); System.out.println("Created LoginContext"); lc.login(); } catch (LoginException le) { System.out.println("Login failed"); le.printStackTrace(); }
try
{ InitialContext iniContext = new InitialContext(); SessionHome home = (SessionHome) iniContext.lookup(example+"/StatelessSession"); System.out.println("Found StatelessSessionHome"); Session bean = home.create(); System.out.println("Created StatelessSession"); System.out.println("Bean.echo('Hello') -> "+bean.echo("Hello")); bean.remove(); } catch(Exception e) { e.printStackTrace(); } What is the setting to enable authentication
process?
Burt
|
- Re: [JBoss-user] Jboss authentication Yahoo
- Re: [JBoss-user] Jboss authentication Scott M Stark
- Re: [JBoss-user] Jboss authentication Yahoo
- Re: [JBoss-user] Jboss authentication Scott M Stark
- Re: [JBoss-user] Jboss authentication Yahoo
- Re: [JBoss-user] Jboss authentication Scott M Stark
- Re: [JBoss-user] Jboss authentication Philip Van Bogaert