Are you looking for a long term (crash resistent) cache of the reports
or are you just wanting them to be cached in memory?
I wrote a similar app for my employer except the reports were dynamic
using real time data and auto rotated. I used a local memory cache
(LRU) to cache the reports. This works if the reports are not very
large and there are not many people on the same site.
But, from what you describe, you need a long term caching solution.
Here is what I would do: on first request of the report, generate it
(async), then save it to persistent storage (DB or file system). On
subsequent requests, load the completed report instead of regenerating
it. There are several 3rd party caching solutions (Cameron Purdy has
one- Coherence 2.2) that can persist to file system.
James Hicks
-----Original Message-----
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
[mailto:J2EE-INTEREST@(protected)
Sent: Monday, August 04, 2003 9:59 AM
To: J2EE-INTEREST@(protected)
Subject: Serving files dynamically
I currently have a site that allows customers to come view reports for
some information we keep. The requirement is to keep a 2 year history
on these reports. Currently, the reports are generated dynamically
every time (even for the 1 year old reports). I want to make a
modification to the site to archive the reports (excel spreadsheets)
that are X weeks old and serve the customer the archived report rather
than generate it. The report is generated on large amounts of data and
takes a while to generate. Has anyone done this or is there a best
practice for something like this? Also, the report will be different for
each customer that comes to the page, with the maximum number of
customers being around 30.
========================================================================
===
To unsubscribe, send email to listserv@(protected)
body of the message "signoff J2EE-INTEREST". For general help, send
email to listserv@(protected)
"help".
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".