Re: AjaxLongResponse

Peter McGregor <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Thanks Amedeo

AjaxPing works much faster.

I put ProcessBuilder into its own thread, but the session timeout still 
didn't work for some reason.
I ended up creating one more thread which killed the processbuilder 
thread and terminated the session
when its sleep statement completed

regards

peter

On 28/09/12 9:03 PM, amedeomantica wrote:
> Hello,
>
> I would use a separate thread in your wo app and a normal wo page with ajaxping to update the content.
> Would be more easy to detect user activity and stop the thread
>
> Amedeo
>
> On 28/set/2012, at 01:57, Peter McGregor <[email protected]> wrote:
>
>> Hello
>>
>> I have an application which uses an AjaxLongResponse Page to talk to a
>> webserver which then runs ProcessBuilder to spawn a thread which then
>> runs an interactive fortran program.
>> In effect the browser user runs an interactive fortran program on the
>> server.
>> Unfortunately AjaxLongResponse polls the server every second, and for
>> some reason the webobjects/tomcat WebServer will not  time out the
>> instance after my 60 minutes timeout in web.xml
>> Every poll sends about 4KB worth of data and if the user minimises their
>> longresponse web page and stays logged in, many gigabytes of data are
>> sent to/from the server.
>>
>> I am attempting to find a way around this problem and have come up with
>> the idea of some javascript code which runs in the background and times
>> out the user if there has been no activity for a certain period. A
>> banking web site that I use does this.
>>
>> I then  wondered if project wonder has some javascript code that does
>> this. I have looked at the wonder ajax examples components looking for
>> some code, but nothing leaps out at me.
>>
>> I was wondering if someone had some suggestions.
>>
>> Thank you
>>
>> Peter McGregor
>>
>>
>> ------------------------------------------------------------------------------
>> Got visibility?
>> Most devs has no idea what their production app looks like.
>> Find out how fast your code is with AppDynamics Lite.
>> http://ad.doubleclick.net/clk;262219671;13503038;y?
>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>> _______________________________________________
>> Wonder-disc mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wonder-disc


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.