Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAAS login - Subject.doAs(subj, xxxAction)

843829Feb 13 2004 — edited Feb 13 2004
Hi!

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2004
Added on Feb 13 2004
1 comment
350 views