Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2339

InjectionPoint#getBean() returns null if dependent bean injected into contextual singleton or stateless session bean

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Unscheduled
    • 3.0.0.CR1, 2.4.2.SP1
    • None
    • None
    • Hide

      Take the TCK test org.jboss.cdi.tck.tests.lookup.injectionpoint.non.contextual.NonContextualInjectionPointTest and change Baz to @Singleton or @Stateless.

      Show
      Take the TCK test org.jboss.cdi.tck.tests.lookup.injectionpoint.non.contextual.NonContextualInjectionPointTest and change Baz to @Singleton or @Stateless .

    Description

      The current implementation relies on the fact that org.jboss.weld.ejb.spi.EjbServices.resolveEjb() triggers a session bean instance creation and injection. Which is obviously not always true.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: