[jboss-user] [EJB 3.0] - Re: Detect client disconnection

oskar.carlstedt do-not-reply at jboss.com
Sun Feb 3 16:15:59 EST 2008


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



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125898#4125898

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125898



More information about the jboss-user mailing list