3 Replies Latest reply on May 26, 2004 7:06 AM by slaboure

    Order of deploying EARs in deploy / farm directory

    marlig

      Hi,

      is there a way to control the order in which EARs are deployed that reside in the deploy and farm directory? I need to make sure that the EARs in farm are deployed first, because in deploy I have EARs depending on them.

      Thanks
      Martin

        • 1. Re: Order of deploying EARs in deploy / farm directory
          kaobe

          Hi Marlig,

          I have not tried it, but it could work for you if you add a depends tag to your deploymentscanner mbean in jboss-service.xml. There you tell it it depends on the FarmMember mbean in farm-service.xml. So it should deploy the farm directory first.
          Another possibility could be to put the mbean definition from farm-service before the one in jboss-service. I think the xml-files are deployed from top to bottom.

          Peter

          • 2. Re: Order of deploying EARs in deploy / farm directory
            marlig

             

            "kaobe" wrote:
            I have not tried it, but it could work for you if you add a depends tag to your deploymentscanner mbean in jboss-service.xml. There you tell it it depends on the FarmMember mbean in farm-service.xml. So it should deploy the farm directory first.

            Another possibility could be to put the mbean definition from farm-service before the one in jboss-service. I think the xml-files are deployed from top to bottom.


            Hi Peter,

            thanks for your remarks. I tried the first one, but it kind of screws up the whole deployment process, so that nothing get's deployed correctly anymore.

            The second one seemed to be more promising. Until I realized that I need the datasource installed before anything else. So the correct deployment order (for me) would be deploy(datasource)-farm-deploy(rest).

            I played around a bit and found that I can create a directory deploy.last2 which get's deployed after deploy.last, where the farm-service.xml resides. This does the trick. Now first the datasource and all the other essential stuff from deploy gets installed, then what's in farm, and then the remaining parts of my application.

            Btw, I'm using JBoss 3.2.4RC2.

            Greetings
            Martin


            • 3. Re: Order of deploying EARs in deploy / farm directory
              slaboure

              yes, your last2 trick should work. Otherwise, I think it is possible to add depends tags in jboss-app.xml file as well, this should be in the DTD.


              sacha