1 Reply Latest reply on Nov 10, 2014 7:59 AM by ctomc

    Transitive dependency

    zcc39r

      Considering Class Loading in WildFly:

      "...WildFly's class loading is based on modules that have to define explicit dependencies on other modules. Deployments in WildFly are also modules..."

       

      So if my deployment X has dependencies on modules A and B, and module A explicitly depends on module B, then there is not enough to express X's dependency on module A only, and I should explicitly list A and B as X's dependencies in my jboss-deployment-structure.xml. Am I right?

        • 1. Re: Transitive dependency
          ctomc

          Yes you are right.

           

          Other option would be that your module A exports (export="true" in module.xml of A) dependency B, this way all modules that depend on A would also get dependency on B.

          1 of 1 people found this helpful