Hi!

Some background:
We are currently running tomcat (9.0.26) and we serve data to
both html/webapp and to our java application. The java application
uses a lot of the same jar files that our servlets use. 

We have had tomcat setup with two directories:
1) webapps/<webapp>/WEB-INF/lib (as usual for servlet classes)
2) webapps/<webapp>/clientdir/ (jar files for the java application).

This means that we have a lot of duplication of jar files in these two
directories.

We would like to have the duplicate files in only one place, sure
disk space is cheap, but data transfer takes time. We thought that
having the jars in the clientdir would be nice.

We have read the documentation for tomcat and found the resource handling
and it looks like we could possibly use something like:

<Resources>
  <JarResources base="${catalina.base}/webapps/<webapp>/clientdir/"
    className="org.apache.catalina.webresources.DirResourceSet"
    webAppMount="/WEB-INF/lib" />
</Resources>

We tested this lightly and things seems to work.

Questions:
Is there any problem with this?
If so, do you know of any better way to accomplish this?

Thanks
/robo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to