1 Reply Latest reply on Apr 20, 2011 2:12 AM by jaikiran

    JBoss 6.0.0.M1 deployment order

    m4verick

      Hi,

       

      I am trying to deploy my apps on JBoss 6.0.0.M1 AS.

       

      I have EAR with some EJB's, and WAR file, which uses EJB's from EAR. The dependencies are injected to the WAR by Spring's @Autowired annotations. Due to the deployment order WAR starts before EAR and tries to inject some beans, which are not yet bound to the JNDI names. I've tried to put jboss-dependency.xml to the WAR:

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      
      <dependency xmlns="urn:jboss:dependency:1.0">
           <item whenRequired="Real" dependentState="Installed">jboss.j2ee:ear=Billing.ear</item>
      </dependency>
      

       

      but it didn't help so much. I also used aliases.txt inside EAR package and used it in above code, but with no result. How can I solve this problem. As far, I'm out of ideas.

       

      I would be grateful for any help.