As Matej already said that will be to difficutl internally in wicket (for example the rendering of a page and another thread setting stuff like new components)
And for the developer code itself. Threading is one of the most difficult things there is in programming, there are so many loopholes.

So we could syn around a page (that is pretty much already in) so that you can have multiply pages accessed at once. Then only the wicket session object
must be taken care of. But that is also now already the case because there are situations like session.attach/detach or if you have your own request cycle
that access the session. Then a session can be accessed by multiply threads.

johan



On 7/6/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
anyone care to comment?

just to reiterate the problem: if i work with two windows/tabs, pointing to the same wicket app, and in one i do some lengthy operation, then in the other i cannot work. i'm not sure if this is the case, but if i want to build a flicker like site, then i can't browse the site while uploading images

ittay

Johan Compagner wrote:
> 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]
> <mailto:[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
>     < http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      > _______________________________________________
>      > Wicket-user mailing list
>      > Wicket-user@lists.sourceforge.net
>     <mailto: 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] <mailto:[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
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto: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


--
===================================
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