• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

One Tomcat container with multiple equal applications

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.

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?

Thanks in advance.
 
reply
    Bookmark Topic Watch Topic
  • New Topic