This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a shared folder accross WebApps

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic