Re: Disabling serialization/storage of pages in session?

2007-11-17 Thread Johan Compagner
And then to be even more clear when you do the code below that eelco has given you as an example the back button wil NOT work anymore. johan On Nov 17, 2007 2:23 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: You could also explain some of the details of what should be returned by our

Re: Disabling serialization/storage of pages in session?

2007-11-17 Thread saenz
Hi Timo, Thanks for the suggestion -- I definitely agree that using the source code and reading it thoroughly will help us understand the inner workings of Wicket. However, I would call that a white box approach. :) My hope was to see if I might find some explanations and answers from the

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Igor Vaynberg
round-robin has a couple of disadvantages over sticky sessons: a) you need to replicate state to all nodes - a lot of traffic although with a fiber backplane its most likely not an issue. with sticky sessions you only have to replicate to one or two other nodes which act as backup buddies. b)

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Igor Vaynberg
you will get an error, i have explained this in a parallel thread yesterday... that is why we are working on a special page store that will also write out the current page onto the disk when the session is replicated - that means all nodes will have all the pages spooled to disk so clustering will

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread saenz
Fair enough. Good answer. :) Of course I meant in the non-failure case. So under normal operations outside of failure conditions, perhaps there really is no benefit to move users to other nodes during the lifetime of a session, or at least the difficulty outweighs the benefit. - Lu

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Igor Vaynberg
On Nov 16, 2007 8:37 AM, saenz [EMAIL PROTECTED] wrote: Johan, are you saying that other types of load balancing strategies besides sticky sessions are all flawed, and that it only makes sense to use sticky sessions? Please correct my understanding. If sticky sessions are the only recommended

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Eelco Hillenius
On Nov 16, 2007 10:33 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: you can still cluster 1.3.1 easily. either use httpsessionstore or tell wicket to save pages to a shared drive Or use that project Matej is working on. It works. Eelco

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread saenz
Also, can someone answer this other question I asked? saenz wrote: Also -- if page serialization is disabled, what happens when the user hits the back button? -- View this message in context:

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread saenz
By the way, my question below still has not been answered. Can anyone explain what would occur in the following scenario? My question regarding on-disk page storage relates to the use case of a web-app deployed on a cluster. In this situation, what will happen if the following occurs? 1.

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Johan Compagner
what do you mean with disabled? how is it disabled? The page can't be serialized because of none serializeable attributes? Then in the default 1.3 configuration that page can't be saved to disk so you can't restore it. johan On Nov 16, 2007 8:56 PM, saenz [EMAIL PROTECTED] wrote: Also, can

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Johan Compagner
Application * protected* *abstract* ISessionStore newSessionStore(); johan On Nov 16, 2007 8:54 PM, saenz [EMAIL PROTECTED] wrote: igor.vaynberg wrote: you can still cluster 1.3.1 easily. either use httpsessionstore or tell wicket to save pages to a shared drive Thanks Igor.

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Martijn Dashorst
How can he be more specific than give you the method you need to override? Martijn On Nov 17, 2007 12:53 AM, saenz [EMAIL PROTECTED] wrote: Hi Johan, Would you mind being a little bit more specific? Or you may feel free to point me to the documentation that I should read. Johan

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread saenz
Johan Compagner wrote: what do you mean with disabled? how is it disabled? The page can't be serialized because of none serializeable attributes? Then in the default 1.3 configuration that page can't be saved to disk so you can't restore it. Hi Johan, What I mean is by using the

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread saenz
Hi Martijn, I think so. You could let us know if we should subclass Application directly or subclass WebApplication. I would assume the latter. You could also explain some of the details of what should be returned by our override of WebApplication.newSessionStore(). The javadoc for this method

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Igor Vaynberg
you know, the code is all there. you could just look at it... -igor On Nov 16, 2007 5:04 PM, saenz [EMAIL PROTECTED] wrote: Hi Martijn, I think so. You could let us know if we should subclass Application directly or subclass WebApplication. I would assume the latter. You could also

Re: Disabling serialization/storage of pages in session?

2007-11-16 Thread Eelco Hillenius
You could also explain some of the details of what should be returned by our override of WebApplication.newSessionStore(). The javadoc for this method reads typically not something clients reimplement so I assume we really need to know what we're doing if we override this method. This in your

Re: Disabling serialization/storage of pages in session?

2007-11-15 Thread Eelco Hillenius
What is the recommended deployment model to support back-button usage via undoable changes and disk-based serialized storage with Wicket? Is it only possible using a load balancer configured to be sticky (keep sessions on the same node during the lifetime of the session)? Recommended is to

Re: Disabling serialization/storage of pages in session?

2007-11-15 Thread saenz
Johan Compagner wrote: The DiskStore is for the backbutton and the PageMap (thats in the session) is for the current page. And as long as that page is statefull you have to store it in the session. What is the lifetime of a Page object stored in the session? Does Wicket manage the

Re: Disabling serialization/storage of pages in session?

2007-11-15 Thread saenz
Eelco Hillenius wrote: If need be, can we disable altogether the storage of pages (in the form of a pageMap) in session, similarly on the disk ? Yep. One easy way to achieve this is to provide a dummy page store. My question regarding on-disk page storage relates to the use case of a

Re: Disabling serialization/storage of pages in session?

2007-11-13 Thread Aqeel
I think your example should be simplified to include only Page A. Imagine the Facebook profile page: - You can add a wall post and after that you land on the same page with the new post shown on top. - This (in Wicket's way) should create 2 versions of your FB profile page. One with the posted

Re: Disabling serialization/storage of pages in session?

2007-11-13 Thread Johan Compagner
its pretty accurate yes but a back link on V2 to V1 is a pretty special made thing Because there is normally not really a link to a previous page. Because on the javaside you don't know that really. But you can ask for a specific page version if you want. johan On Nov 13, 2007 3:07 PM, Aqeel

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread serban.balamaci
Why is everybody pointing out not to have database data inside the page? Many times retrieving the data from the database could be the slowest thing and having that sort of cache is one nice thing in my opinion. Is it not much better to have data in the session? I understand that it will be a

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Sebastiaan van Erk
Hi, You should use a second level cache to cache objects and queries from your database; and that's not Wicket's job, Wicket is a Web framework. For example, use Hibernate + ehcache. Regards, Sebastiaan serban.balamaci wrote: Why is everybody pointing out not to have database data inside

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Eelco Hillenius
You should use a second level cache to cache objects and queries from your database; and that's not Wicket's job, Wicket is a Web framework. For example, use Hibernate + ehcache. Yep. That way you'll avoid redundancy in caching, and have caching regardless of whatever UI framework you're

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread serban.balamaci
Most database expensive operations come from the result of stored procedures(my current experience at least). A cache solution can be implemented by caching the method results with spring(in case of using spring) but is a heavy(difficult) thing to maintain that cache per user - http session is a

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Johan Compagner
Also caching data inside a session and having those object over multiply request gives in hibernate always errors like LazyInitalizationException or Transient/StaleObjectException Holding on to data in sessions is really a bad idea because you dont know when they come back if you have a session

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Gwyn Evans
Hi, It's not hard to do it with Wicket, but I'm fairly sure that for the typical web-app, the metrics showed that the a re-request to database wasn't a big issue, whereas the gain in terms of reducing the session size was, especially where it needs replicating. As such, the recommendation is as

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread serban.balamaci
I'm not for not considerate caching outside the web layer or a naive aproach to cache everything even if that object changes 10 times a sec. I am just saying that it may be ok in some cases to keep state on some objects and not have detachable models. I'm not saying keep all in session and pay no

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Al Maw
serban.balamaci wrote: I am just saying that it may be ok in some cases to keep state on some objects and not have detachable models. I agree. Anything that uses a List of database entities, I tend to put in a detachable model. If I'm merely using a single POJO that was originally pulled

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread mfs
I agree..and i would say its mostly the nature of the applications which would help determining whether storing the data in the wicket session would be a good idea or not... Further i believe that 99% of the times one just comes to the need of accessing the last page-instances (lets say through

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Johan Compagner
if you press the back button only once then the page needs to come from disk. So if your users never use the back button then yes you only need to have the last accessed page in the pagemap. johan On Nov 9, 2007 10:36 PM, mfs [EMAIL PROTECTED] wrote: I agree..and i would say its mostly the

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Johan Compagner
its not the lasst access page of a Page. Its the last access page of a page in a pagemap what ever it is PageA or PageB or PageZ On Nov 10, 2007 12:31 AM, mfs [EMAIL PROTECTED] wrote: In what context are you refering to the back button here...Lets say we have two page instances of type

Re: Disabling serialization/storage of pages in session?

2007-11-08 Thread Johan Compagner
like eelco said if you don't want to serialize and store on disk, create a filestore that does nothing (or holds a few pages for per session in mem for backbutton) But what do you mean with disable the storage of pages in a session? You don't want to store a statefull page at all in the pagemap

Re: Disabling serialization/storage of pages in session?

2007-11-08 Thread mfs
Basically we are still researching wicket and figuring out if that would be the desired framework for us (so far it does look promising)..and in that context we are exploring all the different scenarios/use-cases/possibilities... Now there would be certain use-cases/pages in our application

Re: Disabling serialization/storage of pages in session?

2007-11-08 Thread Eelco Hillenius
Now there would be certain use-cases/pages in our application which would have alot of data in it (lets say in mbs), and in that scenario storing the entire model-data/components would probably bring in too much of a load on the system (in my opinion...given high volume of users..) so with

Re: Disabling serialization/storage of pages in session?

2007-11-08 Thread mfs
Well that was just hypothetically speaking..what i meant was it would have loads of data loaded in it..so it was that scenario where i was wondering that we shouldnt store the state of each page. Yes as you pointed out using detachable models can certainly be one to way to go..but at the same