if you don't lock then pages and sessions must take care of that they are not thread safe
currently wicket is for the most part (99%) thread safe.

Maybe we could loose it a bit and say we only sync around the active page.
But then if you hold a page in another page. And set that as a respond then we can have again
threaded access to that page that is get from a 'pool'

johan


On 7/5/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
thanks for the quick response.

is there any way around it? what happens if i don't lock?

Matej Knopp wrote:
> Ittay Dror wrote:
>> this is from RequestCycle:
>>   private final void processEventsAndRespond()
>>         {
>>                 // Use any synchronization lock provided by the target
>>                 Object lock = getRequestTarget().getLock(this);
>>                 if (lock != null)
>>                 {
>>                         synchronized (lock)
>>                         {
>>                                 doProcessEventsAndRespond(processor);
>>                         }
>>                 }
>>                 else
>>                 {
>>                         doProcessEventsAndRespond(processor);
>>                 }
>>         }
>>
>>
>> this is from BookmarkablePageRequestTarget:
>>  /**
>>          * @see wicket.IRequestTarget#getLock(RequestCycle)
>>          */
>>         public Object getLock(RequestCycle requestCycle)
>>         {
>>                 // we need to lock when we are not redirecting, i.e. we are
>>                 // actually rendering the page
>>                 return !requestCycle.getRedirect() ? requestCycle.getSession() : null;
>>         }
>>
>>
>> as far as i could see, requestCycle.getSession() returns a Session from the HttpSession
>>
>> this means that if i open two tabs to a wicket application, and in one i do some lengthy operation, and then try to load an unrelated page in the other, it will be stuck, right?
>
> right.
>
> -Matej
>
>> ittay
>>
>>
>
>
> 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&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


--
===================================
Ittay Dror,
Chief architect, openQRM TL,
R&D, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running

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&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

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&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to