1 Reply Latest reply on Jul 15, 2008 4:39 PM by alesj

    How to specify deploy dependency

    tkyung

      Hi:

      I am trying to look for the equivalent way of the mbean "depends" functionality when using the spring deployer for deploying multiple apps. But since the deployer only reads *-spring.xml that are already in spring bean definitions, it seems including a jboss-service.xml in META-INF/ folder doesn't do anything.

      If I have more than one spring apps to be deployed to jboss, is there a way to specify which app is deployed first? Looks like the default way is to deploy them in alphabetical order of the app name (is that correct?)

      Thanks,

      Ken

        • 1. Re: How to specify deploy dependency
          alesj

           

          "tkyung" wrote:
          Hi:
          If I have more than one spring apps to be deployed to jboss, is there a way to specify which app is deployed first? Looks like the default way is to deploy them in alphabetical order of the app name (is that correct?)

          Currently I don't see any other way.

          For JBossAS4.x I won't be changing anything.
          But I'm open for suggestions for SpringDeployer used in JBossAS5.

          What would directly solve your problem is using Microcontainer (MC) to deploy your Spring beans.
          There the order doesn't matter - correct order is discovered by MC.
          - http://www.jboss.org/jbossmc