Module class loading precedence in JBoss EAP 6

Solution Unverified - Updated -

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:

  1. Implicit dependencies
  2. Explicit dependencies
  3. Local resources
  4. 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.

https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html/Development_Guide/chap-Class_Loading_and_Modules.html

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.