This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

run-as

 
Nikita Deshmukh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

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.

Thanks,
Nikita.
 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you the anwser is B
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic