Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2227

@Startup @Singleton (via switchboard) should take into account transitive ENC dependencies before instantiating the bean

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • depchain-1.0.3
    • depchain-1.0.0-alpha-43
    • singleton
    • None

    Description

      Consider the following beans:

      @Startup
      @Singleton
      public class A
      {

      @EJB
      private B slsb1;

      @PostConstruct
      public void onConstruct()

      { slsb1.doSomething(); }

      }

      @Stateless
      public class B
      {

      @EJB
      private C slsb2;
      }

      @Stateless
      public class C
      {
      ....
      }

      Currently, the @Startup @Singleton is instantiated when the ENC of that bean is fully invokable. However, it only waits for a populated ENC of transitive dependent bean(s). This can lead random failures with lookup. Please see the referenced forum thread for the complete details.

      Attachments

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              15 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: