Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

object caching

 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have objects which hold rarely changing data. Ideally I'd like these objects to be loaded when Tomcat starts up, but have had a difficult time finding anything on google that is helpful. So far, I've only read about other frameworks that do this. Is there an easier way?
[ November 07, 2005: Message edited by: Chris Montgomery ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand your problem correctly, you might find WhirlyCache to be helpful.
Whirlycache is a fast, configurable in-memory object cache for Java.

Bill
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your problem concerning how to implement caching, or how to do anything
at start up in a web app? If it is the latter, you could always define a
servlet, set its load-on-startup property in your web.xml to 1, say, and then
in the servlet's init method, do whatever you need to do on application startup.
 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the servlet load-on-startup is perfect.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic