Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1296

Allow @DependsOn usage by all session bean types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.0-beta-1
    • deployment
    • None

    Description

      In EJB 3.1 the @DependsOn annotation was added to deal with ordering of beans annotated with the @Startup which causes the bean to be instantiated eagerly at application start rather than lazily on first request. Only @Singleton beans are allowed to use the @Startup annotation, however the new @Stateless minimum pool size functionality also causes instances to be created at startup presenting the same ordering issue that an @Singleton+@Startup might have.

      To eliminate any ordering issues brought on by any eagerly started beans, the @DependsOn annotation can now be used on any session bean type.

      Attachments

        Activity

          People

            dblevins David Blevins
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: