Source - One of choice of a question from Whizlab.
Method getCallerPrincipal returns the principal represents the caller of
EJB which is same as the principal that corresponds to run-as-secutiry identity of bean, if exists.
FALSE
Reason
It is not mandatory that principal that corresponds to run-as-identity for the bean should be same as principal that represents the caller of the bean.
Can someone please add few more words to the reason, bit hard to understand for me.
Thanks.