TIMER Setting on Client!!!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ajay_luthria
Posted On:   Monday, March 11, 2002 07:25 AM

Hello, I have a client application that makes a URL Connection to a Servlet and gets a response back from the servlet. Now,I have been assigned the task of setting a timer which is : The Client makes a URL Connection to the Server. If the client does not receive a response back from the server within 10 seconds,it shud return back with the message 'Response Unavailable.Client Connection Timed Out'. Please does any one know how to set this TIMER on my client application.? Is this Possible? ajay ajayluthria@hotmail.com    More>>

Hello,


I have a client application that makes a URL Connection to a Servlet and gets a response back from the servlet.



Now,I have been assigned the task of setting a timer which is :




The Client makes a URL Connection to the Server.

If the client does not receive a response back from the
server within 10 seconds,it shud return back with the
message 'Response Unavailable.Client Connection Timed Out'.




Please does any one know how to set this TIMER on my client application.?


Is this Possible?

ajay

ajayluthria@hotmail.com

   <<Less

Re: TIMER Setting on Client!!!

Posted By:   Vladislav_Kamensky  
Posted On:   Monday, March 11, 2002 11:43 PM

It is a quite simple task. You should run separate Thread for the timer purposes. When Thread have finished counting 10 seconds it will close input stream from URLConnection and throw message 'Response Unavailable.Client Connection Timed Out'
About | Sitemap | Contact