Jboss EAP 7.4 class loading isolation

196 Views Asked by At

We are deploying 3 war files in Jboss EAP 7.4. All 3 war files have a dependency on a module which contains spring, hibernate and lots of other jar files. Is there a way to have complete isolation between classloading of the war files as we think module classes are shared between wars and causing issue. Thanks

1

There are 1 best solutions below

4
James R. Perkins On

Modules are loaded in their own class loader which will be shared across all its dependents. If you need Spring to be in a unique class loader for each WAR your best options is to include Spring in each WAR.