JBoss Community

Dependencies expressed with @Resource

created by Alexey Loubyansky in JBoss AS7 Development - View the full discussion

I'd like to clarify the effects of these dependencies on service deployment and creation/initialization.

 

The way it's now, these dependencies don't affect deployment, i.e. if a dependency specified in @Resource is missing or there is a circular dependency expressed with @Resource, this won't affect deployment.

It may affect runtime though, e.g. an initialization of an mbean, but only if the dependency is associated with an injection target (i.e. was specified on a field or a method).

 

The question is should these dependencies be checked for resolution at deploy time and fail the deploy if they can't?

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community