简体   繁体   中英

Why does multiple ejb jars in an EAR share the same classloader whereas each WAR gets its own classloader?

Well, title pretty much says it :). From whatever I have read i know by design EJBs share a single classloader but I am willing to understand the reason behind it. Would appreciate any pointer.

Each WAR is a standalone module. Each JAR in the root of an EAR aswell as the WAR file inside are related modules. Thus it makes sense for them to use the same classloader. Sharing class loader between multiple WAR files would not be feasable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM