• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Creating a shared folder accross WebApps

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know there are shared folders available for JARS, classes etc in Tomcat, but are there/is it possible to create a folder for images?

I jhave several webapps running off Tomcat (AT 5.5.12) all of which need access to a collection of images. What I don't want to have to do is, copy the same images in EVERY webapp (there are approx 1,500 images totalling around 120MB) so I was hoping I could create a shared/img folder or summin and well each webapp to look under there.

Is it possible!?

Cheers
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

is it possible to create a folder for images?


That depends on how you are serving the images! IF you are using img tags that point directly to an image file, the built in Tomcat default servlet will obey the web application rules that do not allow for a "shared" folder.
However, if you use your own image serving servlet, it can pick up images from anywhere.
Ben Souther has an example of a servlet for images - see Simple Stream on this site
Bill
reply
    Bookmark Topic Watch Topic
  • New Topic