[jboss-user] [Beginner's Corner] - Re: 5.1.0.GA - Problems with Dependency Injection

Wolfgang Knauf do-not-reply at jboss.com
Tue Apr 12 08:04:23 EDT 2011


Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion

"Re: 5.1.0.GA - Problems with Dependency Injection"

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

--------------------------------------------------------------
Hi, http://community.jboss.org/docs/DOC-16681 How To Order JBoss AS Deployments By Defining Custom Dependencies

I hope it helps to add a JBoss-specific "@Depends" annotation to "AnaUniEJB":

@Depends(value = "jboss.j2ee:jar=JAR2.jar,name=GvccBean,service=EJB3")
@Stateless
@WebService
public class AnaUniEJB implements AURemoteBusiness, AnaUniWebService {


I am not sure whether the @Depends value is correct. If not: when "GvccBean" is deployed sucessfully, you can find the correct name by looking at the jmx console.

It might also help to force JBoss to first deploy JAR2, then JAR1. Take a look e.g. at those articels:

 http://community.jboss.org/docs/DOC-11683 http://community.jboss.org/wiki/PrefixDeploymentOrder
 http://community.jboss.org/docs/DOC-16681 http://community.jboss.org/wiki/HowToOrderJBossASDeploymentsByDefiningCustomDependencies

Hope this helps

Wolfgang
--------------------------------------------------------------

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

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110412/5260b773/attachment.html 


More information about the jboss-user mailing list