You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eickvonder Bjoern <Ei...@inside-online.de> on 2005/09/14 10:39:59 UTC
large content directory out of the webapp
Hello,
my webapplication consists of a rather small set of classes, jsps and so
on but has got a rather large content directory (some GB). My problem is
now if I want to update only the application itself but not the content
by uploading a new war-file I nevertheless have to upload the content
again.
I cannot use a combination of Apache and Tomcat, letting Apache serve
the content (and thus using another docbase) as this content has to be
protected by a security-mechanism of the application.
Is there any way to store the content data out of the webapplication
directory but still being able to serve those files to the client? Of
course I could write a servlet to do this job, but what about the
performance if every request to a file goes through a servlet that looks
for the file in another directory, parses it and then sends the stream
back to the client? Anyone solved this problem that way and got any
positive or negative experience?
Or is it better to leave the content where it is and just update the
application incrementally? If yes has anyone got a good hint how to
manage this update process without the need of doing this manually (i.e.
deleting old files, jsps, classes and uploading new ones)?
Bjoern Eickvonder
____________
Virus checked by G DATA AntiVirusKit
Version: AVK 16.474 from 14.09.2005
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: large content directory out of the webapp
Posted by Paul Singleton <pa...@jbgb.com>.
Eickvonder Bjoern wrote:
> Hello,
>
> my webapplication consists of a rather small set of classes, jsps and so
> on but has got a rather large content directory (some GB). My problem is
> now if I want to update only the application itself but not the content
> by uploading a new war-file I nevertheless have to upload the content
> again.
> I cannot use a combination of Apache and Tomcat, letting Apache serve
> the content (and thus using another docbase) as this content has to be
> protected by a security-mechanism of the application.
Can you neither split it into two pure Tomcat apps?
Paul S.
> Is there any way to store the content data out of the webapplication
> directory but still being able to serve those files to the client? Of
> course I could write a servlet to do this job, but what about the
> performance if every request to a file goes through a servlet that looks
> for the file in another directory, parses it and then sends the stream
> back to the client? Anyone solved this problem that way and got any
> positive or negative experience?
>
> Or is it better to leave the content where it is and just update the
> application incrementally? If yes has anyone got a good hint how to
> manage this update process without the need of doing this manually (i.e.
> deleting old files, jsps, classes and uploading new ones)?
>
> Bjoern Eickvonder
>
>
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 16.474 from 14.09.2005
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/Sep/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org