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?