sophana wrote:
I agree with you that webware is not designed for doing this kind of stuff.
If you want to do long running queries, I suggest that you bypass apache
and webware, and implement a separate dedicated (python) server that
supports these very long running queries, without the timeout problem,
without polling.
Anyway, you need to somehow inform the client that your result is ready.
For VERY long running queries, you can expect the client to look at a
certain result page. But John's solution is nice in that it informs the
client automatically when the server is ready, even if it takes longer
than the usual timeout of 90 seconds.
However, this is really not the normal use case, therefore I have made
the polling part now optional. The timeout for long-running queries is
now an attribute of the AjaxPage class that can be overridden by servlet
instances. If it is set to 0, not polling takes place. I have also split
up the Javascript file in two parts, separating the functions used for
polling. If timeout is set to 0, the second part is not loaded. The
AjaxSuggest example works now with a timeout of 0, i.e. without any
polling. It is already checked in to the SVN repository.
-- Christoph
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss