I have one Tomcat 6 container running. I have multiple applications installed in tomcat/webapps/, like:
tomcat/webapps/myApp1 (accessed by the URL: www.domain.com/myApp1)
tomcat/webapps/myApp2 (accessed by the URL: www.domain.com/myApp1)
tomcat/webapps/myApp3 (accessed by the URL: www.domain.com/myApp1)
Almost all files and servlets are equals, except for some few configuration files and static files like XSL and FO. Each application has it's own mySQL database.
My problems is that it takes much time to update all these equals applications. Also they use a lot of memory when running.
The only files I am currently sharing is some third party jar files, which is located in tomcat/lib.
I am wondering if it is possible to share jsp and servlets as well. Maybe having only one single library with all equals jsp and servlets files and share these files across my applications?