1 Reply Latest reply on Jan 6, 2009 4:47 PM by leiolay

    JBoss 5: Deployment order within a EAR



      I have a EAR that contains two EJB JARs and a WAR. The WAR is dependent on EJBs.

      When I deploy the EAR, the deployment of the WAR starts before the EJB deployment is done. When the code inside the WAR looks up a EJB via JNDI, it fails because EJB is not deployed yet.

      Is there a way to enforce the order so WAR is always deployed last?