2 Replies Latest reply on May 24, 2006 1:22 AM by jaikiran pai

    ordering which apps load first

    lords_diakonos Newbie

      Ihave about 8 wars deployed to jboss all exploded and 3 ears not exploded. I need to setup the order in which they are deployed on startup.

      How do I do that. Thank you

        • 1. Re: ordering which apps load first
          jaikiran pai Master

          The DeploymentScanner is meant for this. Have a look at the same in jboss-service.xml present in %JBOSS_HOME%/server/default/conf directory which contain the following:

          <!-- The URLComparator can be used to specify a deployment ordering
          for deployments found in a scanned directory. The class specified
          must be an implementation of java.util.Comparator, it must be able
          to compare two URL objects, and it must have a no-arg constructor.
          Two deployment comparators are shipped with JBoss:
          - org.jboss.deployment.DeploymentSorter
          Sorts by file extension, as follows:
          "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip",
          "*"
          - org.jboss.deployment.scanner.PrefixDeploymentSorter
          If the name portion of the url begins with 1 or more digits, those
          digits are converted to an int (ignoring leading zeroes), and
          files are deployed in that order. Files that do not start with
          any digits will be deployed first, and they will be sorted by
          extension as above with DeploymentSorter.
          -->
          <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>


          You can even specify your own DeploymentScanner.



          • 2. Re: ordering which apps load first
            jaikiran pai Master

            The previous post got distorted. Here's the contents from jboss-service.xml:

            <!-- The URLComparator can be used to specify a deployment ordering
            for deployments found in a scanned directory. The class specified
            must be an implementation of java.util.Comparator, it must be able
            to compare two URL objects, and it must have a no-arg constructor.
            Two deployment comparators are shipped with JBoss:
            - org.jboss.deployment.DeploymentSorter
            Sorts by file extension, as follows:
            "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip",
            "*"
            - org.jboss.deployment.scanner.PrefixDeploymentSorter
            If the name portion of the url begins with 1 or more digits, those
            digits are converted to an int (ignoring leading zeroes), and
            files are deployed in that order. Files that do not start with
            any digits will be deployed first, and they will be sorted by
            extension as above with DeploymentSorter.
            -->

            <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>