This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting the JAAS Subject from an session bean.  RSS feed

 
Martin Coetzee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!!
I've created my own JAAS principal, and attached it to an existing subject's principals in the web container. How do we access the subject from the EJB container? The standard sessionctx.getUserPrincipal() from the session bean only returns ONE principal.
I'd appreciate any help!
Regards
Martin Coetzee & Dean James-Everett (Sunny South Africa)
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Martin -
I'm going to move this up to the EJB forum and see if you don't get a few more responses.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a dirty little secret -- JAAS is NOT integrated with the J2EE specifications in this way. I'm not sure you CAN retrieve the extra principals in the EJB container -- it would vary on your container, and some containers probably won't allow it...
Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!