13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 5-8 demonstrates EJB delegation in contrast to the default Run As Callermode. In the top scenario, the identity of the caller, caller01, is propagated fromEJB1 to EJB2. In the bottom scenario, EJB1 is delegated to run as role01.During run-as mapping, another user, caller02, is mapped to role01, andtherefore it is effectively caller02 that calls EJB2. If, in the bottom scenario, EJB2were to call EJB3, EJB3 would also appear to have been called by caller02.The following example shows the XML code in the ejb-jar.xml deploymentdescriptor file for the default mode (run as caller).Example 5-4 ejb-jar.xml code for non-delegated EJBThis bean requires no delegation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!