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

Built-in InjectionPoint bean not injected for stateless session bean

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: WELD

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: