caching Java objects

2009-07-08 Thread Mitch Claborn
What is the preferred method of caching arbitrary Java objects locally in a Struts application? I've been making my actions implement ApplicationAware and storing objects in that Map. (I think this comes from the ServletContext?) Is that the best way or is there something else? Mitch

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 mi...@claborn.net What is the preferred method of caching arbitrary Java objects locally in a

Re: caching Java objects

2009-07-08 Thread dusty
? Mitch - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/caching-Java-objects

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

Caching Java Objects

2005-04-25 Thread temp temp
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 buttoncalls database to get data. Its like I have 3 submit buttons 1st gets User comments . 2nd gets some

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,