Module class loading precedence in JBoss EAP 6
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Issue
- In what order does JBoss EAP 6 load modules?
- What is the priority of global module?
Resolution
The module loading precedence is:
- Implicit dependencies
- Explicit dependencies
- Local resources
- Inter-deployment resources
A global module is a part of Implicit dependencies. Implicit Dependencies get added by the JBoss deployers when the applications are deployed, global modules are added at the same level. The Explicit dependencies are dependencies specified in the jboss-deployment-structure.xml or MANIFEST.MF Dependencies: section.
If you have duplicate classes/jars at the same priority level, the result is undefined and unpredictable.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
