Hi,
I have a situation here and I don't know exactly how to solve it. I want
to perform a task. It goes like that :
When the user fires an action in an applet I make a urlConnection to a
servlet and do some things. What I want is to start a thread at that
time which will sleep for 10 days and then make an action ( if possible
that action to be to call another servlet ). Of course in the minwhile
the user should be able to get out of the applet that began this, close
the browser, restart the browser and in general have no constraints.

   As  I see it the thread should run in the servletContext which will
be active for all this time.I have tried to start the Thread in the
servlet (which is called by the applet)  in the service context (inside
doPost after the response to the applet has been given ) and though it
works it causes the server (IAS 4.0) to literaly crowl. It consume the
whole cpu time and therefore it is impossible for the user to continue .

Any help would be appreciated
Thanks in advance !

___________________________________________________________________________
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