You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Blevins (JIRA)" <ji...@apache.org> on 2010/06/10 03:32:13 UTC

[jira] Created: (OPENEJB-1296) Allow @DependsOn usage by all session bean types

Allow @DependsOn usage by all session bean types
------------------------------------------------

                 Key: OPENEJB-1296
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1296
             Project: OpenEJB
          Issue Type: Improvement
          Components: deployment
            Reporter: David Blevins
            Assignee: David Blevins
             Fix For: 3.2-beta-1


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.