4 Replies Latest reply on Apr 11, 2007 4:01 AM by jochenb

    EAR file module SubDeployment ordering

    pakemann

      Is it possible to configure 4.0.5 to deploy modules in an ear file in the order they are listed in application.xml?

      I have some code I need to execute at the end of the deployment of an EAR file and this seems like the best way to do it.

      I found discussions in the developer forum on the topic of respecting application.xml ordering, but I am not clear if the matter was resolvced, and if so, how to go about actually doing it.

      If anyone could help with an explanation of how exactly to do this, (or alternate suggestions on how to approach the problem) I would greatly appreciate it.

      For reference here are:

      The discussion thread:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78376&start=10&postdays=postDays&postorder=postOrder&highlight=highlight

      The feature tracker entry:
      [urlhttp://jira.jboss.com/jira/browse/JBAS-2904[/url]

        • 1. Re: EAR file module SubDeployment ordering
          pakemann

          I received a reply From Vicky Kak on this with the corrected syntax:

          <module-order>>strict|implicit</module-order>

          tag in jboss-app.xml. This is supported in Jboss 4.0.5 and later.

          • 2. Re: EAR file module SubDeployment ordering
            jochenb

            Hello pakemann,

            can you send an example of your jboss-app.xml which uses the <module-order> tag?
            If I have a look at the JBOSS_HOME/docs/dtd folder I cannot find a dtd for jboss-app.xml which contains the module-order tag.

            Best regards,
            Jochen

            • 3. Re: EAR file module SubDeployment ordering
              pakemann

              Sorry I didn't nitice your post earlier.

              My jboss-app.xml is pretty straightforward:

              <?xml version="1.0" encoding="UTF-8"?>
              <jboss-app>
              <module-order>strict</module-order>
              </jboss-app>


              I am still wondering about module un-deploy order. Good Luck!

              • 4. Re: EAR file module SubDeployment ordering
                jochenb

                Hello pakemann,

                thanks for providing your jboss-app.xml.
                I have deployed the same jboss-app.xml to my ear's META-INF folder. But this didn't change the deployment order. JBoss still does not recognize the module ordering in the application.xml.
                I am using JBoss 5. As I read you are using JBoss 4.0.5. Does anybody know if this is broken in JBoss 5?

                Best regards,
                Jochen