2 Replies Latest reply on Jan 19, 2006 3:19 PM by poyge394

    war file load order

    smozely


      Hi,

      We have and EAR file which contains 4 war files.

      We would like one of the WAR files to be top in the AppContext hirearchy for these 4 Wars. But when the ear is deployed the WAR's are just deployed alphabetically. Is there a way to override this in the application.xml for the ear file.
      I keep seeing references to load order around the web, but not sure if this is supported in JBoss and not sure of the syntax

        • 1. Re: war file load order
          smozely

          After thinking of better search terms, I see this is a hot topic ....

          I see one post that talks about using would I be able to do this for the war files? Ie make 3 of the war's depend on the fourth?

          Thanks in advance for any reply

          • 2. Re: war file load order
            poyge394

            u can use PrefixDeploymentSorter, you put all 4 war files direct under deploy. and put one prefix order.
            Sample:

            1-a.war
            2-b.war
            3-c.war
            4.d.war

            and jboss deploy the archive in that order.
            Non-prefixed packages are deployed before prefixed packages

            That is not the default behaviour in jboss.
            The default deployment-ordering-policy is defined in conf/jboss-service.xml, you most uncomment PrefixDeploymentSorter.

            / Poyan