Run-as support

Run-as support for servlets is similar to run-as support for EJBs:

To enable run-as support for servlets or JSPs, the servlet or JSP must be installed in a Web application. Additionally, you must specify corbaname URLs in the EJB Reference properties for the servlet or JSP that issues the call. For information on interoperable naming URLs, see Chapter 9, “EAServer EJB Interoperability,” in the EAServer Programmer’s Guide.

From EAServer Manager, configure the run-as identity as follows:

  1. Expand the icon for your Web application.

  2. Highlight the servlet for which you are configuring run-as support.

  3. Display the Run As Identity tab and configure the settings as follows:

    The Existing Mappings on the Web Application table displays logical identity names that are mapped to EAServer identities by servlets in the same Web application.

You can configure a run-as identity application or server-wide. This provides a convenient way to globally set the run-as identity for all of the servlets/JSPs in an application or server. See “Configuring EJB 2.0 components or servlets to run as a different identity at the application or server level” for more information.