0

I there any way to configure a shared external library location for multiple J2ee based web application which deployed in tomcat.

SadurdinaG
  • 33
  • 1
  • 8
  • see http://stackoverflow.com/questions/267953/does-tomcat-load-the-same-library-file-into-memory-twice-if-they-are-in-two-web – paulk23 Jun 30 '16 at 14:46

1 Answers1

0

Place the shared libraries in Tomcat's common/lib folder, and they will be available for all the webapps deployed on that server.

However, please note that deploying multiple applications on a single Tomcat server is considered bad practice. Tomcat is very lightweight, so running one instance per application is perfectly acceptable from a performance point of view. Also, it allows you to fine-tune Tomcat's memory, configuration, librairies, etc. differently for each web application.

Olivier Croisier
  • 6,139
  • 25
  • 34