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

Built-in InjectionPoint bean not injected for stateless session bean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta3
    • 1.1.5.Final, 2.0.0.Alpha3
    • None
    • None

      Suppose this legal scenario (see 5.5.7. Injection point metadata) with SLSB bean Foo and request scoped bean Bar.

      @Stateless
      public class Foo {
       @Inject
       InjectionPoint injectionPoint;
      }
      
      @RequestScoped
      public class Bar {
       @Inject
       Foo foo;
      }
      

      Field Foo#injectionPoint is null.

      However the question is whether injection of InjectionPoint on SLSB should be possible. I think it may lead to inconsistencies - SLSB should not have any state as it is usually pooled and reused for every invocation.

              marko.luksa@gmail.com Marko Luksa (Inactive)
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: