Hi there, Am 22.04.2009 um 10:26 schrieb thron7:
> Alexei Vinidiktov wrote: >> On a related note, should each remote call use a separate >> qx.io.remote.Rpc variable, or can one be declared for the whole class >> and be reused? >> >> In the code that I posted in my first email I used a separate >> qx.io.remote.Rpc variable for each function (each listener has its >> own >> variable), but I've tried using just one such variable and it worked >> fine. >> >> I was wondering if reusing one variable for different remote calls >> could cause any conflicts and should be avoided. >> > > Request objects should only be used for a single request, so make sure > to instantiate them fresh for each I/O request. Alexei was talking about Rpc instances, not request instances. Rpc instances can - and should - be reused for many (and also concurrent) requests. Regards, Andreas J. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
