Because the applet sends data to a servlet to update a database on the
server. The
applet's signals contains sensitive dynamic data that needs to be monitored
constantly by the servlet and saved on a database. If the connection gets
lost even for a minute,  the servlet will lose track of the chain of data.
So the running applet must halt when it is disconnected from the server.
But I first need a way to detect a disconnection. So what is the best way ?
Shall I make use of the URL class? Socket class? Or use sessions?
What is the best approach? Are there any source codes out there which does
this ?



>Date: Wed, 3 Mar 1999 09:12:13 +0100
>From: "Bruening, Oliver" <[EMAIL PROTECTED]>
>Subject: Re: Need help regarding Connection tracking
>why do you have to check the connection ? if the connection is not
>present you will get an exception in the applet anyway.
>regards
>bruening
>Ulysses E. Legaspi schrieb:
>
> Hi Guys,
> I need to create a method in an applet that checks the connection between
> the applet
> and a servlet (or the server itself). Shall I make a thread first for the
> connection and then
> Shall I make use of the URL class? Socket class? Or use sessions?
> What is the best approach? Are there any source codes out there which does
> this ?
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to