From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
> The only complication in such situations to be aware of is when you
> might need to periodically refresh the data, i.e., maybe the database
> could possibly be updated throughout the day, but not frequently enough
> to hit it every time through.

What he said. ;)  I use a combination of Listeners,  Maps, and Ehcache
(http://ehcache.sourceforge.net/).  As far as the rest of the app knows,
it's just a Map.  But actually the contents of the Map might expire and be
re-loaded, invisibly (other than the request taking a bit longer).

This lets me cache large objects while the user is clicking around, and then
they just go away without my having to remember to remove them from session
scope.  (My session timeout is longer than I necessarily want those objects
hanging around.)

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to