A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB Certification (SCBCD/OCPJBCD)
Joined: Jun 08, 2005
Aug 28, 2005 14:36:00
This is really confusing. Ih ave been going thru the specs and I really don't know what to think. Now here's the question :
Given the session bean with a run-as identity, What is returned from getCallerPrincipal when invoked from the bean's business method ??
A. the run-as identity.
B. the principal associated with the client invocation.
Now the answer states A as the correct option. But the ejb-2.0 specs on the page number 437 clearly state that
"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."
Which one is correct.
Joined: May 26, 2005
Aug 28, 2005 18:52:00
I agree with you the anwser is B
SCEA<br />SCJP 1.2<br />SCBCD<br />MCSD<br />IBM Certified Specialist RUP v2003<br />IBM Certified Solution Designer OOAD vUML2<br /> <br />Phone Number:86-010-82776427
I agree. Here's the link:
Security - Principal & run-as-identity
Doubt with EJB Programmatic Security
caller principal question from spec
run-as related question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013