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
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
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?
st way or is there something
> else?
>
> Mitch
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
-
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,
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
6 matches
Mail list logo