tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parsons Technical Services" <parsonstechni...@earthlink.net>
Subject Re: 2 War files for one Application
Date Wed, 02 Jun 2004 17:11:30 GMT
Mike,

If you have control of the server you can try what I did. I needed to have a
common directory to serve out pics for several of my apps. I set up a folder
in the root of tomcat and created a servlet that intercepted any request for
a .jpg file. It then read the file in using file IO and wrote it out to the
response.

This had the side affect of not needing to reloading the pics when the app
was reloaded. Thus achieving what you need. You would have to manipulate the
movie files manually rather than as part of the war.

Some caution is needed when writing the servlet to ensure that a mal-formed
URL does not create some unwanted action. One thing I did was to do a
substring so as to only use the segment of the URL that indicated the file
name without extension. This way adding any path information would not
affect the request.

Let us know if you need further information.

Doug
www.parsonstechnical.com


----- Original Message ----- 
From: "mpforste" <mpforste@muckworld.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, June 02, 2004 8:54 AM
Subject: 2 War files for one Application


> I would like to know if it is possible to have 2 War files for one
> application.
>
> The problem...
>
> I have to upload changes to the server and the link is not that fast.
>
> The current War file is 27mb in size, but the changeable parts are only
> about 1mb at most
>
> (the jar file inside is only 187kb)
>
> Most of it is jar files that are needed and some swf movie files for a
fixed
> presentation.
>
> Is it possible to have 2 files set up to make the whole site so I can put
> the larger non changing files
> in one larger war and the smaller changeable files in another to make
> updating the site easier?
>
>
> Mike.
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message