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