Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Tomcat Newbie, need help with caching

Thread view: 
JerryJ - 29 Jun 2006 21:23 GMT
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"/>
Juha Laiho - 30 Jun 2006 19:52 GMT
"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)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.