-
1. Re: Equivalent of ear-subdeployments-isolated true/false
zhurlik Sep 13, 2019 2:43 AM (in response to kennardconsulting)Hi,
You can look at
Class Loading in WildFly - WildFly 10 - Project Documentation Editor
Thanks,
Vlad
-
2. Re: Equivalent of ear-subdeployments-isolated true/false
kennardconsulting Sep 21, 2019 3:17 AM (in response to kennardconsulting)Thanks for trying to help, but the official documentation is not sufficient.
I figured it out: you have to add META-INF/MANIFEST.MF dependencies in every EJB JAR. These dependencies must link to all other EJB JARs, including making circular dependencies. This must be what WildFly does by default.
After that, you can start pruning and streamlining dependencies.
-
3. Re: Equivalent of ear-subdeployments-isolated true/false
jaikiran Sep 21, 2019 7:48 AM (in response to kennardconsulting)If you mean, you want the EJB _interfaces_ accessible from other sub-deployments of the same application, then you can package those interfaces into individual jar files and place them under the lib directory of the .ear (if there isn't a lib directory at the root of the .ear, create one). Be sure to include just the interfaces and not the implementations of the EJBs. The implementations of the EJBs should be packaged separately and place at the root of the .ear.
Having said that, the ear-subdeployments-isolated attribute uses a sensible default for reasons like this - to allow sub deployments to have access to the resource loaded by the classloader of these individual sub-deployments. There isn't any security issue with it. These resources/classes aren't in any way accessible outside of the top level (.ear) deployment.