Why are Sub deployments in ear are not isolated in JBoss EAP 6

Solution Verified - Updated -

Issue

  • How does the classloading works in the ejb-in-ear example? When the GreeterEJB is referenced from the web module it can be injected without (from what I can see) any dependencies specified in a jboss-deployment-structure.xml or similar. I was under the impression that you had to do this in JBoss EAP 6 since the modules (ejb and web in this case) have separate classloaders? So I'm a bit confused as to how the dependency can work with just a "provided" dependency in the pom.xml of the web module. Is it using the parent class loader (ear) automatically somehow?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content