jsr345-experts@ejb-spec.java.net

[jsr345-experts] Re: [JIRA] Created: (EJB_SPEC-30) Extension of @DependsOn annotation with Class[] beans() element

From: Carlo de Wolf <cdewolf_at_redhat.com>
Date: Wed, 09 Nov 2011 10:36:46 +0100

On 11/09/2011 03:05 AM, Marina Vatkina wrote:
> David,
>
> @DependsOn defines the order in addition to the dependency. Annotation
> on the @EJB doesn't allow that. Also, you might want to depend on a
> bean and do not need to inject it...

Without the @DependsOn the usage of red or green in @PostConstruct will
initialize said EJBs.

So a @DependsOn @EJB(beanName="red") combination makes no sense to me.

Carlo