Re: caching Java objects

2009-07-08 Thread dusty
For stuff like data dictionary lists, or other random stuff I don't need to reload I will initialize on startup and store in the servletContext. I will use EhCache for handling cache of model objects when I have a lot of reads and want to improve performance when there are lots of "things". I

Re: caching Java objects

2009-07-08 Thread Oscar Alvarez
Hi... It depends on what the objects mean on your system... exist ApplicationAware, SessionAware and RequestAware interfaces... You decide what to use in your design. HTH 2009/7/8 Mitch Claborn > What is the preferred method of caching arbitrary Java objects locally > in a Struts application?

Re: Caching Java Objects

2005-04-26 Thread Erik Weber
Also, check these out: https://whirlycache.dev.java.net/ http://www.opensymphony.com/oscache/ Erik temp temp wrote: Is it similar to sessions ie each user will have his own cached Object or all the users share the same Cached object . I have a jsp with multiple submit buttons .Each submit butto

Re: Caching Java Objects

2005-04-25 Thread Erik Weber
temp temp, If you are going to cache: Use request scope for objects that should be cached for the duration of a single request servicing. Use session scope for objects that should be cached for the duration of a user's session (more than one request) and that represent data unique to the user,