But this is during exception scenarios. But in case of my application i need to 
read from the socket. According to my udnerstanding from the mail should i need 
to handle  this rereading mechanism in the exceptional block. 

i was thinking about a code fragment which gets the Inputstream in the client 
and then reads from it. if no data found then sleep and then after waking read 
the data again nd finalay timeout after a specific time interval. But instead 
of me coding is there a mechanism for handling this. Please correct me if i 
understood worng.

Can DefaultHttpMethodRetryHandler  be useful in this case. i never used this. 
Require some more help and clarification on the same.
 


On Tue, 27 Dec 2005 Oleg Kalnichevski wrote :
>On Thu, Dec 22, 2005 at 12:55:14AM -0000, bharathi  swarajya wrote:
> > Hi,
> >
> > I would like to have some information on how to do the following. I am 
> > planning to use HttpClient to send a request to a system which reads from 
> > HttpClient. And then later it sends back a response to the same client. My 
> > application might send multiple requests to the System at the other end, I 
> > should have a mechanism of retry to read the response. So my problems are
> >
> > 1)How to I incorporate the retry mechanism. And I dont want the application 
> > to keep on trying to read the request. How do I do that using HttpClient. 
> > After some time the application should get a timeout response if its not 
> > able to read the response.
> >
>
>See
>
>http://jakarta.apache.org/commons/httpclient/exception-handling.html#Automatic%20exception%20recovery
>
> > 2)If I send multiple requests at the same time from my application and try 
> > to read response, how can I find out the response for the request sent. How 
> > to I need to to do it. Does HttpClient internally handle it or do I need to 
> > do it at a code level.
> >
>
>HttpClient handles that internally
>
>Hope this helps
>
>Oleg
>
> >
> > Could any one help me in this regard. Just let me know if any other method 
> > is there to do this.
> >
> >
> >
> >
> > Thanks & Regards
> > S.S. Bharathi
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to