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/HowToOrderJBossASDeploymentsByDefiningCus...
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&...]