Oleg ,

Retry method works with IOExceptions but in my case its SocketException . I don't know how to handle Connection reset exception.

|*retryMethod <../../../../org/apache/commons/httpclient/HttpMethodRetryHandler.html#retryMethod%28org.apache.commons.httpclient.HttpMethod,%20java.io.IOException,%20int%29>*(HttpMethod <../../../../org/apache/commons/httpclient/HttpMethod.html> method, IOException <http://java.sun.com/j2se/1.4.1/docs/api/java/io/IOException.html> exception, int executionCount)|

Thanks!


Oleg Kalnichevski wrote:

Santosh,

Have you looked at the HttpClient tutorial?

http://jakarta.apache.org/commons/httpclient/tutorial.html

If you are using HttpClient 3.0 you may also want to look at the
HttpClient exception handling guide for more specific info:

http://jakarta.apache.org/commons/httpclient/3.0/exception-handling.html

Hope this helps

Oleg

On Wed, Dec 08, 2004 at 04:51:52PM -0600, Santosh Haranath wrote:


Hi,

How do I write retry handler for java.net.SocketException: Connection reset exception ?

Thanks!


-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.6 - Release Date: 12/5/2004


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]








-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.6 - Release Date: 12/5/2004


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to