Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-247

Managed bean @Resource injection is premature

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.Beta2
    • None
    • None
    • None

    Description

      The way this works now, for a given managed bean type T, the ManagedBeanService<T> would have an instance of each @Resource bean injected as part of start(). Thereafter whenever ManagedBeanContainer.createInstance() is invoked, the same bean instance would be injected into the newly created bean. AIUI what should happen is createInstance() should result in a new naming lookup for each @Resource bean, which in turn would trigger creation of a new instance of that bean.

      This also causes classloading problems, since doing the injection during the MSC StartTask results in the ManagedBeanObjectFactory not being visible. See forum thread for effect of this.

      Attachments

        Activity

          People

            johnbailey_jira John Bailey (Inactive)
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: