JAAS login - Subject.doAs(subj, xxxAction)
843829Feb 13 2004 — edited Feb 13 2004Hi!
Most JAAS documentation sources that I have seen use a code similar to this:
loginCtx.login();
Subject subj = loginCtx.getSubject();
Subject.doAs(subj, xxxAction);
However with WebLogic, WebSphere and JBoss the code works fine without using the Subject and doAs():
loginCtx.login();
XXXHome home = jndiCtx.lookup("xxx");
XXX service = home.create();
service.invokeSomeMethod();
Your help is greatly appreciated.
Regards
mba