2 Replies Latest reply on Jul 30, 2003 7:41 AM by Peter Goetz

    How to change the deployment orderint for the DeploymentSort

    Peter Goetz Newbie

      Hi there,

      I'd like to change the order in which the different jars are deployed by the MainDeployer.
      I think one has to change the default attributes for the org.jboss.deployment.DeploymentSorter in the jboss-service.xml. But how?

      I tried to give the attribute tag a "values" clause, but that didn't work. And it doesn't seem to give a hint to this in the dtd of jboss-service.xml

      Has anybody done this and can give me some help?
      Thank you very much!!

      Peter

        • 1. Re: How to change the deployment orderint for the Deployment
          Jon Barnett Master

          The explanation is actually in the conf/jboss-service.xml file.

          You'd replace the deployment sorter for the URLComparator tag:
          org.jboss.deployment.scanner.PrefixDeploymentSorter

          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.

          • 2. Re: How to change the deployment orderint for the Deployment
            Peter Goetz Newbie

            Hello,

            thank you for your tip. I tried this, but it didn't work.
            But now I know what was the problem. I was thinking in the wrong direction.
            I just had to add this line in the farm-service.xml to get rid of the problem:
            jboss.jca:service=CachedConnectionManager

            Then my .jar had all the informations that are necessary for its deployment.

            Thank you very much.

            Peter