-
1. Re: What is a "dependency" in modules?
jaikiran Dec 29, 2014 4:45 AM (in response to americanhorizon)It just means that one module depends (requires) the resources defined/contained in some other module.
-
2. Re: What is a "dependency" in modules?
valsaraj007 Dec 29, 2014 4:52 AM (in response to jaikiran)You can add a module dependency in dependencies section of the module.xml file of a module.
Eg:
Added the following dependency to org.picketbox module in another module:
<dependencies>
<module name="org.picketbox"/>
</dependencies>
-
3. Re: What is a "dependency" in modules?
americanhorizon Dec 29, 2014 5:14 AM (in response to jaikiran)jaikiran pai ha scritto:
It just means that one module depends (requires) the resources defined/contained in some other module.
and what is the difference with importing libraries directly into the class?
-
4. Re: What is a "dependency" in modules?
jaikiran Dec 29, 2014 6:52 AM (in response to americanhorizon)Luca Coraggio wrote:
jaikiran pai ha scritto:
It just means that one module depends (requires) the resources defined/contained in some other module.
and what is the difference with importing libraries directly into the class?
Are you talking of import statements in Java classes? Those are compile time dependencies that you are setting up. How and from where those dependencies get picked up at runtime is decided by your runtime environment. In case of AS7/WildFly that runtime environment for classloading is managed by JBoss Modules project and that's where the module.xml definitions for modules come into picture and that's where you specify the (runtime) dependencies.
-
5. Re: What is a "dependency" in modules?
americanhorizon Dec 29, 2014 11:42 AM (in response to jaikiran)Suppose that i've a class mailManager.java
and another class called subriscption.java. Inside this i import mailManager.java, when i deploy both on AS7 i should write the directory path in which they are positioned ? This is the dependecy that we are talking about?