[jboss-dev-forums] [JBoss AS7 Development] - Dependencies expressed with @Resource

Alexey Loubyansky do-not-reply at jboss.com
Wed Nov 10 10:42:40 EST 2010


Alexey Loubyansky [http://community.jboss.org/people/alex.loubyansky%40jboss.com] created the discussion

"Dependencies expressed with @Resource"

To view the discussion, visit: http://community.jboss.org/message/570529#570529

--------------------------------------------------------------
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
[http://community.jboss.org/message/570529#570529]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101110/2bc16359/attachment.html 


More information about the jboss-dev-forums mailing list