Re: struts2 and WebSphere dynacache

2013-02-13 Thread Ken McWilliams
Even then the solution is very limited. The OP probably wants to cache all popular pages/reports, in many cases the same action will be responsible... a singleton clearly can't address that. It could be addressed with an object pool that was keyed to actions, parameters and values and managed by a

Re: struts2 and WebSphere dynacache

2013-02-13 Thread Antonios Gkogkakis
On 13 February 2013 07:35, Lukasz Lenart wrote: > 2013/2/12 Antonios Gkogkakis : > > 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 >

Re: struts2 and WebSphere dynacache

2013-02-12 Thread Lukasz Lenart
2013/2/12 S M : > What if I use a servlet for the 'View' instead of using a struts2 action or > using spring/guice? Since my only objective is to try use dynacache, for > the views. There is no View action in Struts 2 by default, is it a custom action you made? Anyway, if those are the static reso

Re: struts2 and WebSphere dynacache

2013-02-12 Thread Lukasz Lenart
2013/2/12 Antonios Gkogkakis : > 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 objec

Re: struts2 and WebSphere dynacache

2013-02-12 Thread S M
What if I use a servlet for the 'View' instead of using a struts2 action or using spring/guice? Since my only objective is to try use dynacache, for the views. I don't have experience with Spring so my understanding of the benefits are lacking. On Tue, Feb 12, 2013 at 10:20 AM, Antonios Gkogkakis

Re: struts2 and WebSphere dynacache

2013-02-12 Thread Antonios Gkogkakis
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 th

Re: struts2 and WebSphere dynacache

2013-02-12 Thread S M
Hi, Thanks for the quick response. I've structured my struts2 application by using a struts action 'View' which renders different pages depending on the parameters passed in to the view. So I'm looking to cache the different pages based on the url. On Tue, Feb 12, 2013 at 1:20 AM, Lukasz Lenar

Re: struts2 and WebSphere dynacache

2013-02-11 Thread Lukasz Lenart
2013/2/12 S M : > Hi, > How do we cache struts2 actions using dynache? Since struts2 uses a filter > instead of servlets, the cachespec.xml entries I have for the actions don't > seem to have any effect. Why and what for? Actions are dynamic elements of your application and caching them doesn't ma