1 Reply Latest reply on Aug 2, 2003 6:40 AM by jonlee

    Changing order of deployed packages.

    vkons

      Hi,

      Is there a way to change the order of the deployed packages in JBoss.


      I have 2 jars, A, B
      I want when starts up, to be deployed first A.jar & second B.jar because B.jar is references some objects from A.

      In Windows it seems that the deploymens is made by
      alphabetical way, first A, then B but in Linux or Sun
      it's not deplyed in that way.


      Is there a xml that describes the packages that will be deployed and their order.

      Thanks a lot.

        • 1. Re: Changing order of deployed packages.
          jonlee

          In your conf/jboss-service.xml, you can try substituting:
          org.jboss.deployment.DeploymentSorter

          for:

          org.jboss.deployment.scanner.PrefixDeploymentSorter

          You would need to rename your deployment JARs 1A.jar and 2B.jar. The prefix deployment, deploys 1A.jar first because of the numerical precedence. It is assumed that you are talking about JARs deployed in the deploy directory.

          There is more description about the scanner in the jboss-service.xml.

          It may work for you. Some people have said that was not what they were after so I'm cautious about guaranteeing that it will solve your problem.