It was discussed many times but could someone explain it once more, please.
The EJB2.0 spec says: "The Application Assembler should specify the requirements for the caller�s principal management of enterprise bean invocations by means of the security-identity deployment descriptor element and as part of the description. If use-caller-identity is specified as the value of the security- identity element, the caller principal is propagated from the caller to the callee. (That is, the called enterprise bean will see the same returned value of the EJBContext.getCallerPrincipal() as the calling enterprise bean.) If the run-as element is specified, a security principal that has been assigned to the specified security role will be used for the execution of the bean�s methods and will be visible as the caller principal in the callee." Does "will be visible as the caller principal in the callee" mean that it will be returned as a result of getCallerPrincipal()? As it is implemented in jboss, the answer is no. So, what's the difference between getCallerPrincipal() and "will be visible as the caller principal in the callee"? TIA -- Best regards, Alex mailto:[EMAIL PROTECTED] _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
