Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-152

Access the web.xml from CDI extensions

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Out of Date
    • 1.0
    • TBD
    • None
    • None

    Description

      Currently it is not possible to access the web.xml file from CDI extensions in a portable way, since the ServletContext is not available from CDI extensions (at least in EE enviroments).

      I filed a Servlet spec issue to make the web.xml file accessible, prior to the the ServletContext being initialized:
      http://java.net/jira/browse/SERVLET_SPEC-9

      Perhaps as an alternative solution, CDI could do something to delay CDI extensions from loading until the ServletContext is available? Since this is the case for Servlet environments, would it not be acceptable for EE environments as well?

      Attachments

        Activity

          People

            Unassigned Unassigned
            bleathem@redhat.com Brian Leathem (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: