I've done this with Spring + EHCache. I used a method interceptor so
both my struts code and my facade implementation was none the wiser.
http://opensource.atlassian.com/confluence/spring/display/DISC/Caching
+the+result+of+methods+using+Spring+and+EHCache
You could even get creative and abstract the caching mechanism so you
could plug in whatever you wanted.
--
James Mitchell
On Apr 14, 2006, at 11:27 AM, news.gmane.org wrote:
In a struts app, I would like to have some objects which load
themselves via
db queries on app startup, and remain in memory for quick information
access. They would need to refresh different pieces of data on
different
schedules, and also be triggered manually to refresh based on some
user
action. In some cases, I would even like to modify these in-memory
objects
and have that information persist back to the database.
Are there any utilities or plugins which exist that would do the
job of
running a separate thread to manage objects like this?
I'm not looking for something like Hibernate - I don't want a
persistence
layer between my app and the database. I need a way to manage
objects that
cache information, refresh intelligently, and optionally write their
information back to some tables when modified. The end goal is to
speed up
critical screens which rely on complex data retrieval and business
rules.
Any suggestions?
--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]