0 Replies Latest reply on Aug 2, 2013 4:39 PM by earnest.dyke

    Deployment ordering

    earnest.dyke

      Greetings all,

       

      I have a datasource and a cache defined in standalone.xml in EAP 6.0.1 and I have a .war that I have in the deployments directory. The .war has an @Singleton, @Startup EJB that tries to inject the datasource and the cache at startup but sometimes the .war is deployed before all the resources in the standalone.xml. I am using @Resource(lookup="sdfsd") to do the injection. I know I can create a dependency on a deployment of a .war by using deployment.my.war in jboss-deployment-structure.xml but I can find no way to specify a dependency on a datasource or a cache.

       

      Any ideas?

       

      Thanks in advance for any and all relevant responses.

       

      Earnie!