03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

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 Caller<br />

mode. In the top scenario, the identity of the caller, caller01, is propagated from<br />

EJB1 to EJB2. In the bottom scenario, EJB1 is delegated to run as role01.<br />

During run-as mapping, another user, caller02, is mapped to role01, and<br />

therefore it is effectively caller02 that calls EJB2. If, in the bottom scenario, EJB2<br />

were to call EJB3, EJB3 would also appear to have been called by caller02.<br />

The following example shows the XML code in the ejb-jar.xml deployment<br />

descriptor file for the default mode (run as caller).<br />

Example 5-4 ejb-jar.xml code for non-delegated EJB<br />

<br />

This bean requires no delegation<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!