Re: [Wicket-user] Session objects, wicket clean up?

2006-05-17 Thread Igor Vaynberg
by default the pages are in pagemaps that are stored in session. every time you create a page it is put into the pagemap. when this happens an implementation of IPageMapEvictionStrategy is notified and given a chance to trim the pages in the pagemap. by default wicket uses an LRU implementation and keeps the last 7 page+version combinations the user visited i believe. this means the user can hit the backbutton 7 times consecutively and still use the application. you can easily supply your own IPageMapEvictionStrategy implementation - one that for example trims the pagemap to be under a certain size - but then your back button support will also vary.
-IgorOn 5/17/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
Will Wicket take care of cleaning up the HttpSession sometimes in a while?I mean, we create lots of components, for lots of pages the User is accessing. How Wicket know which objects must be removed and with which frequency it will do that?
How this mechanism works? I'm worry about large projects.Thanks-- Bruno BorgesSumma Technologies




Re: [Wicket-user] Session objects, wicket clean up?

2006-05-17 Thread Eelco Hillenius

On 5/17/06, Bruno Borges <[EMAIL PROTECTED]> wrote:

Will Wicket take care of cleaning up the HttpSession sometimes in a while?

I mean, we create lots of components, for lots of pages the User is
accessing. How Wicket know which objects must be removed and with which
frequency it will do that?


Yep. By default we use HttpSession as a session storage, and
HttpSession objects will automatically be cleaned up by the session.
If you use an alternative store (ISessionStore), you'll be notified
when the session invalidated.


How this mechanism works? I'm worry about large projects.


It's actually something that is very good for projects, as - if you
play by the rules of Wicket - there won't be a need for much ad-hoc
session usage which you typically see at projects that don't do state
handling. Topicus profiled some of their applications a few months
ago, and found out the apps that were build with maverick (model 2
framework) actually ended up with a lot more memory usage because of
that. So while one of the 'prices' you have to pay for using wicket is
that you'll always use session memory, one of the things you get for
it is that the ammount of consumption is much easier to control and
predict/ profile.

I'd say look at how ISessionStore works, and get back on the list for
remaining questions.

Eelco


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Session objects, wicket clean up?

2006-05-17 Thread Bruno Borges
Will Wicket take care of cleaning up the HttpSession sometimes in a while?I mean, we create lots of components, for lots of pages the User is accessing. How Wicket know which objects must be removed and with which frequency it will do that?
How this mechanism works? I'm worry about large projects.Thanks-- Bruno BorgesSumma Technologies