aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes getCallerPrincipal() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "getCallerPrincipal()" Watch "getCallerPrincipal()" New topic
Author

getCallerPrincipal()

Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi all,

The chapter 17 of Core Ejb3.0 Spec on Security says:

Note that getCallerPrincipal returns the principal that represents the caller of the
enterprise bean, not the principal that corresponds to the run-as security identity for the bean,
if any.


So how can we get the principal that corresponds to the run-as security identity for the bean

With Regards
Deepthi
Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
And also can anybody explain me the difference between caller Principal and a Role. are both the same
will hrock
Greenhorn

Joined: Aug 06, 2009
Posts: 9
We can't get the Principal that corresponds to the run-as.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getCallerPrincipal()