This content has been marked as final.
Show 4 replies
-
1. Re: Detect client disconnection
cogauthier Jan 28, 2008 5:25 AM (in response to cogauthier)Hi,
Nobody has a long treatment in a stateless session bean and who wishes to stop if the customer closes the page jsp?
Charles -
2. Re: Detect client disconnection
ragavgomatam Jan 30, 2008 11:50 AM (in response to cogauthier)Try this....When client closes the browser, use a javascript function
on_window_close()
or something similar & make an ajax call in that method to stop your process on the server -
3. Re: Detect client disconnection
cogauthier Feb 2, 2008 9:52 AM (in response to cogauthier)Thanks !
Charles -
4. Re: Detect client disconnection
oskar.carlstedt Feb 3, 2008 4:15 PM (in response to cogauthier)Hello!
Unfortunately there are no safe functions in javascript to detect when the browser window is closed. For me it sounds better to grab the output stream from the response and check it in a separate thread while the session bean is executing. I think you can write an empty/blank character to the stream.
Cheers
/Oskar