Sequence of wicket (ajax) requests

2008-10-01 Thread rmorrisey
Is it possible for two request cycles to be running on the server concurrently against the same page/wicket session (including ajax requests)? I was thinking that wicket forces the requests to be processed sequentially (so that the two request cycles can't be handled at the same time), but it

Re: Sequence of wicket (ajax) requests

2008-10-01 Thread Igor Vaynberg
there can be two request cycles running, sure it is only the part that accesses and mutates the page is synchronized for higher throughput -igor On Wed, Oct 1, 2008 at 9:02 AM, rmorrisey [EMAIL PROTECTED] wrote: Is it possible for two request cycles to be running on the server concurrently

Re: Sequence of wicket (ajax) requests

2008-10-01 Thread Matej Knopp
Ajax requests are queued on the client side, so for same page there would not be two paralel ajax request. It is possible to have more queues on the client side, but even if you do that, the requests are still synced on page serverside. -Matej On Wed, Oct 1, 2008 at 6:02 PM, rmorrisey [EMAIL

Re: Sequence of wicket (ajax) requests

2008-10-01 Thread rmorrisey
Igor, Matej, thanks for the replies - I would like to guarantee that only one request cycle is running at a time (for a given wicket session). Is it possible for me to tweak wicket to expanded the part that is synchronized to encompass the RequestCycle's onEndRequest? igor.vaynberg wrote:

Re: Sequence of wicket (ajax) requests

2008-10-01 Thread Igor Vaynberg
sure, in onbeginrequest of your request cycle sync on session -igor On Wed, Oct 1, 2008 at 9:34 AM, rmorrisey [EMAIL PROTECTED] wrote: Igor, Matej, thanks for the replies - I would like to guarantee that only one request cycle is running at a time (for a given wicket session). Is it

Re: Sequence of wicket (ajax) requests

2008-10-01 Thread rmorrisey
Igor, I was thinking about doing it with onBeginRequest(), something like: AIMSSession session = (AIMSSession)getSession(); synchronized (session) { try { //Wait for my turn