I am new to Tomcat. I have a Tomcat web site that generates PDF
documents dynamically. I am having trouble because, once the PDF is
generated, Tomcat caches the output file and sends the same one to the
web client. I need to shut this off so the PDF can be regenerated from
new data on each request.
In the server.xml file under the <Host> element, I've added a <Context>
element to attempt to shut this off (see below). However, the output
still is cached unless I shut down then restart.
Your solution will be appreciated!
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/MyWebFolder" docBase="BookBuild" debug="0"
reloadable="true" cachingAllowed="false" cacheMaxSize="0"/>
"JerryJ" <JanofskyJ@comcast.net> said:
>I am new to Tomcat. I have a Tomcat web site that generates PDF
>documents dynamically. I am having trouble because, once the PDF is
>generated, Tomcat caches the output file and sends the same one to the
>web client. I need to shut this off so the PDF can be regenerated from
>new data on each request.
Tomcat by itself does not generate PDF. You say "caches the output file";
are you certain that this is not the functionality of your PDF generator?

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
JerryJ - 03 Jul 2006 17:51 GMT
The web site I created using Cocoon (a servlet that runs in apache)
generates the PDF on client request. The pdf when complete gets sent to
the client. The next time the client requests the document using the
same URL, apache will send back exactly the same file using the its
file cache.
> "JerryJ" <JanofskyJ@comcast.net> said:
> >I am new to Tomcat. I have a Tomcat web site that generates PDF
[quoted text clipped - 10 lines]
> PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
> "...cancel my subscription to the resurrection!" (Jim Morrison)