Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3729

Add alternate run-as mappings for container callbacks

XMLWordPrintable

      Other app servers support anlternate run-as semantics from the container init/destroy lifecycle callbacks. Weblogic for example:
      http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1041058

      This is an equivalent of <run-as> for init method for servlets. For example:
      <init-as>
      <servlet-name>FooServlet</servlet-name>
      <principal-name>joe</principal-name>
      </init-as>

      <destroy-as>
      <servlet-name>BarServlet</servlet-name>
      <principal-name>bob</principal-name>
      </destroy-as>

      This would allow more control over how these methods interact with secured resources. Similar options could be added for ejb lifecycle methods as well.

              starksm64 Scott Stark (Inactive)
              starksm64 Scott Stark (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: