On 12/02/2009, Will McQueen <[email protected]> wrote: > > Hi, > > How can I set the max retry count for the HTTP Request HTTPClient (ie, the > sample that uses Apache's http client)? > > In the jmeter.properties file, I see: > http.java.sampler.retries= > ...but that seems to be for the default "Http Javat" Java HTTP > implementation ("HTTP Request" sampler) rather than for the Apache http > client. > > The jmeter.properties file includes this reference: > http://jakarta.apache.org/commons/httpclient/preference-api.html > ...which shows a property that seems to be what I need: > http.method.retry-handler= > ...but I'm not sure what value to set it to. > > Do I need to set it to a fully-qualified class name that I create (as an > implementation of interface HttpMethodRetryHandler)?
Looks like it. > In that case, I think I'd just need to ensure that my implementation of this > interface is in the classpath, and JMeter should automatically call the > retryMethod(..) method each time it wants to retry? And I can just set the > body the method to simply return false. Try it and see? > Thank you. > > Cheers, > Will > > > > > > --------------------------------------------------------------------- > 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]

