3 Replies Latest reply on Feb 4, 2016 2:42 PM by seamlearner

    Jboss EAP Module.xml description

    gsandeepry

      In Jboss EAP , in  module.xml for apache cxf, I see the following snippet under dependencies section:

       

      <dependencies>

          <module name="org.springframework.spring" optional="true">

                <imports>

                  <include path="META-INF"/>

                </imports>

            </module>

             <module name="org.apache.cxf" export="true">

              <imports>

                  <include path="META-INF/cxf"/>

                  <include path="META-INF"/>

                </imports>

                <exports>

                  <include path="META-INF/cxf"/>

                  <include path="META-INF"/>

                </exports>

              </module>

      </dependencies>

       

      I am not able to find proper documentation and explanation about what exports and imports mean.

      so far I understand that:

      <dependencies>

          <module name="org.springframework.spring" optional="true">

                <imports>

                  <include path="META-INF"/>

                </imports>

            </module>

      </dependencies>

      above snippet means that we are telling jboss that current module is dependent on "org.springframework.spring"  and it is optional(if the module exits then load)

      then imports part tells to refer META-INF folder of the "org.springframework.spring" jar and load those modules as well.

      Is this correct ?

       

       

      <exports>

                  <include path="META-INF/cxf"/>

                  <include path="META-INF"/>

      </exports>

      I see that the documentation tells that this is to re-export the dependencies, but what does that mean. Can some explain whats happening with this step.

       

      Also please refer me to any good documentation that available with the description.

       

      Thanks for your help.