Terminating an Applet

I

Ike

I need to update a db table when someone terminates an applet, either by
going to another web page in that instance of the browswer - OR - when
someone simply kills the browser.

Is there a means by which i can be certain to write to this db table when
someone exits an applet. I have tried Applet.destroy() but that doesnt seem
to work when someone merely kills the browser. Thanks, Ike
 
C

Chris Smith

Ike said:
I need to update a db table when someone terminates an applet, either by
going to another web page in that instance of the browswer - OR - when
someone simply kills the browser.

Is there a means by which i can be certain to write to this db table when
someone exits an applet. I have tried Applet.destroy() but that doesnt seem
to work when someone merely kills the browser. Thanks, Ike

You need something that can be observed from the outside. Have the
applet open a network connection back to its server, and put some code
on the server to send a "heartbeat"... a short network message that
applet will respond to, verifying that it's still alive. If the
heartbeat isn't returned of there's an IOException on the socket, then
the applet is probably gone.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top