[jboss-user] [Datasource Configuration] - Re: Cannot inject field annotated with @Resource annotation in JBOSS 6

Amber Crawford do-not-reply at jboss.com
Fri Mar 23 09:12:29 EDT 2012


Amber Crawford [https://community.jboss.org/people/amberjboss1999] created the discussion

"Re: Cannot inject field annotated with @Resource annotation in JBOSS 6"

To view the discussion, visit: https://community.jboss.org/message/725919#725919

--------------------------------------------------------------
I think a lot of developers would probably appreciate the solution. This is simply solved by not using @Resource, instead you can use @Autowired, and/or with combination of @Qualifier, with the point being taking component scanning of @Resource out of the equation.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/725919#725919]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120323/154e191a/attachment.html 


More information about the jboss-user mailing list