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 5, “Interoperability,” in the EAServer EJB User’s Guide.

Configure the run-as identity as follows:

  1. Define the run-as identity using the <run-as> property in the config/webapp-name.xml file. If you do not set this property, intercomponent calls use the client identity.

  2. Recompile the servlet using the recompile batch file located in the EAServer bin subdirectory.