tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
Subject Re: common image practice?
Date Thu, 02 Dec 2004 12:21:33 GMT
On Thu, Dec 02, 2004 at 12:51:21AM -0700, D. Stimits wrote:
: I'm looking for a "good" or "best" practice to deal with site-wide logo 
: type files...things that will never change, and that every app will want 
: access to. This is on linux, but enabling sym links just seems to be an 
: admin/backup complexity,


: and duplicating logos in every project also 
: seems wrong.

Why so? If you come from a strong C, C++, or systems management
background, it may be a little tough to swallow at first.  Those are
venues in which file-level sharing and reuse are helpful.  (Sort of.
Trying to get apps to share libraries works just fine until version skew
rears its ugly head.  You'll eventually reach the same impasse trying to
get webapps to share static content.)

Java webapps are different: each one is supposed to be a self-contained
package that can be dropped into a container for execution.  Even the
use of {tomcat}/shared/lib is discouraged, as it places a webapp
dependency outside of the webapp itself.

You could address your problem at build time instead of runtime: have
Ant (or whatever) pull the common data into the webapp before it
packages the WAR file.  If you mix this with your version control
system, different apps could have different versions of these files as
their needs diverge.



software  --
tech news --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message