This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any retry parameter that can be set on HttpClient ?  RSS feed

 
Ravi C Kota
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In our project, we use HttpClient in making a webservice call to Axis and lately we had some instances where the connection is time out while sending the request. So we are wondering, if there is any parameter available in HttpClient api, that can be turned on/off for retrying the sending of request. Since if there is any property that can be set, we can avoid lot of coding and I see an example given at http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e292, but I'm looking for some sort of config changes that would permit us to retry. Can some body advise me on this ?

Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!