In Wildfly, is there a difference between including a JAR file in my WAR, rather than referencing it through jboss-deployment-structure.xml?

I am using Wildfly 11 with Java 8. If I distribute two WAR files with the same libraries

/WEB-INF/lib/javassist-3.18.1-GA.jar

Are there any advantages to including these libraries in / WEB -INF / jboss-deployment-structure.xml, for example

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
        <deployment>
                <dependencies>
            ...
                        <module name="org.javassist" />

as opposed to including a JAR in my WAR files? That is, am I shortening memory due to class loading or any similar advantage?

+4
source share
1 answer

More than any memory or performance advantage (that the JBoss modules claim to be able to do), I think JBoss modules are more suitable for reusing modules or single versions of the same module.

JBoss , maven, JBoss AS, CLI -.

, /, , . , , , , JBoss , .

JBoss jar- , ( ), , ( , ), (), . JBoss ( , , JDK).

JBoss, , , .

.

, .

+1

Source: https://habr.com/ru/post/1693271/


All Articles