hi Harkishin Nachnani,

I think you should use the applet as your front-end and threads to specify
the mins and check the status for a period of time.

:)
john

>From: Harkishin Nachnani <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: Mon, 17 Apr 2000 20:49:16 -0400
>
>I am developing a WebCallBack application.
>When the user enters his phone number and presses the CallMeNow (Submit)
>Button, a call is made to this number from the switch. Actually what I
>am doing is that when he submits this phone number, a servlet is loaded.
>This servlet calls the necessary methods to make call to the user.  I
>even want to keep the client updated about the progess of the call...ie
>The wait time and no of calls ahead of him in the queue.
>
>Sequence of methods in Servlet:
>
>Connection C1 = new Connection( ) ;
>connection_id = C1.connect( );
>C1.send_data(phone) ;
>C1.get_event( connection_id ) ;
>
>The get_event( ) method returns :
>"Estimated wait time for the call" and the
>"number of calls in the queue".
>Actually I want to display this to the user, but these parameters are
>updated every 5 seconds, so HOW do I implement this ???
>Should I make requests after every 5 seconds to get an updated status
>???
>
>If I put the C1.get_event( connection_id) in a loop and if the Estimated
>wait time is 50 seconds, I don't get any HTML data on the screen till
>50 seconds. Only after the entire servlet is processed, I get the
>status,...which does not help, since I want this status to be updated in
>the client's screen after every 5 seconds.
>
>I tried using the " Refresh" concept in the servlet so that the page is
>loaded after every 5 seconds, but then I will have to create multiple
>instances of Connection class which is not feasible as it is the same
>call.
>Is there a method to pass this Connection C1 object within mulitple
>calls to the servlet ???
>
>Any help would be appreciated !!!!
>
>
>Thanks in Advance,
>Harkishin Nachnani,
>MicroAutomation, Inc., 5160 Parkstone Drive, #140, Chantilly, VA 20151
>Tel: (703) 378-7000 x609 Fax: (703) 378-4321
>Web: www.microaut.com
>
>___________________________________________________________________________
>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

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
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