Your main problem will be centered around the physical, static assets of the system - the rest is simple, efficient, banks.
WARs are shared in Tomcat with separate class loaders, but they are also shared at the session level (each WAR is an independent web application and has its own session state).
In Glassfish, if WARs were merged into an EAR, they would separate the class loaders (GF uses the flat space of the class loader in the EAR), but will still have a separate session state.
Also, I'm not sure if you can "forward" another WAR to the server. The problem is that forwards use the relative URL of the root of the web application, and each WebApp has its own root, so you just can't get there. You can redirect, but this is not the same as redirecting.
Thus, these features of the web application are plotting against you, trying to lay them out uniformly inside the container.
Rather, I think the hint of advice is to create an “assembler” utility that takes your individual modules and “merges” them into one web application. It can combine its web.xml, their contents, normalize banks and classes, etc.
WAR is a function and a bug in the Java world. I love them because they really do deploy the compiled Drag and Drop applications in terms of installing them, and this feature is used much more than what you come across. But I feel your pain We have a common “core” structure that we use in different applications, and we basically need to constantly combine it in order to support it. We prepared the script, but it's still a bit of a pain.
Will hartung
source share