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.

5.5.2 Method level delegation<br />

In addition to the bean-level delegation policy defined by the EJB 2.0<br />

specification and described above, the <strong>WebSphere</strong> Application Server provides<br />

the capability to perform method-level EJB delegation. This works in the same<br />

way as bean-level delegation, but can be applied to specific EJB methods, rather<br />

than to the bean as a whole. This finer degree of delegation granularity allows<br />

application assemblers to delegate different methods of the same EJB to<br />

different security roles.<br />

In addition, method-level delegation provides an additional delegation option: run<br />

as server. This option indicates that the method should make calls to other EJBs<br />

using the identity of the application server itself.<br />

Method-level delegation policies are defined in the ibm-ejb-jar-ext.xmi file. The<br />

following example shows the XML code for an onMessage() method which is<br />

delegated to run as the application server.<br />

Example 5-6 Method-level run as server<br />

<br />

<br />

<br />

<br />

<br />

<br />

The following example shows the XML code for an onMessage() method which is<br />

delegated to run as a member of the mdbuser security role.<br />

Example 5-7 Method-level run as role<br />

<br />

<br />

<br />

<br />

88 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

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

Saved successfully!

Ooh no, something went wrong!