aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes JAAS Application to secure EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "JAAS Application to secure EJB" Watch "JAAS Application to secure EJB" New topic
Author

JAAS Application to secure EJB

SnehalPatil
Greenhorn

Joined: Oct 21, 2008
Posts: 1
Can we propagate Security Subject from web Container to Ejb container?If yes which are the necessary policy,permission or any addition setting required in Glass Fish. Because I have developed one "J A A S application" in net beans, server is Glass Fish.But still I can't able to get subject at bean level where in Servlet I am getting subject through logincontext and through same servlet I am calling bean method.where I want to take the principal using Session Context Object.But it's coming Anonymous.what is the problem here.
Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
Hi SnehalSnehal Patil,

i beleive that you should look for Single Sign-On.

https://glassfish.dev.java.net/javaee5/security/faq.html#sso
 
Consider Paul's rocket mass heater.
 
subject: JAAS Application to secure EJB