File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the JAAS Subject from an session bean.

 
Martin Coetzee
Greenhorn
Posts: 21
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic