The EJB Container must be capable of allowing the Deployer to specify that a run-as principal be used for the execution of the home and component methods of a session or entity bean or for the onMessage method of a message-driven bean.
I would say that this run-as principal is used, and not a principal that corresponds to the role. Did you try it out?
posted 15 years ago
... yes, the confirmation is in
If the Application Assembler specifies that a run-as identity be used on behalf of a particular enterprise bean, the Deployer must configure the enterprise beans such that the run-as principal is used as the caller principal on any calls that the enterprise bean makes to other beans, and that the run-as principal is propagated along the call-chain of those other beans (in the absence of the specification of any further run-as elements).
This tiny ad is guaranteed to be gluten free.
Devious Experiments for a Truly Passive Greenhouse!