struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: struts2 and WebSphere dynacache
Date Wed, 13 Feb 2013 07:35:44 GMT
2013/2/12 Antonios Gkogkakis <gkogkaka@tcd.ie>:
> Assuming that caching of Action objects makes sense in your application,
> you could change the struts default object factory,
> to guice or spring and declare the  action beans that you want to be cached
> as singletons. Alternatively you could write your own object factory and
> put some caching logic there.

It isn't a good practise to declare actions as singleton, Struts 2
wasn't designed in that way. You really must know what are you doing
:-)


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message