Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-360

Add BeanManager to a ServletContext attribute

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • M4
    • 1.0.0-alpha-1
    • New Features
    • None

    Description

      The specification defines a JNDI lookup as the standard way to obtain the BeanManager for resources not managed by the CDI environment. Nevertheless it would be much easier to get the BeanManager directly from the ServletContext. This behavior is already implemented in Weld and possibly subject of a change request to the specification [1] .

      I have attached a patch against the trunk that adds this functionality to OpenWebBeans.

      [1] http://lists.jboss.org/pipermail/weld-dev/2010-March/002359.html

      Attachments

        1. add-bean-manager-to-servlet-context.patch
          1 kB
          Christian Kaltepoth

        Activity

          People

            gerdogdu Gurkan Erdogdu
            chkal Christian Kaltepoth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: