Http component 30 sec timeout is not reflecting even though it is set in code

Solution Unverified - Updated -

Issue

  • I'm going to use http4 for one bundle in production. If i have to define httpClientConfigurerRef with http4, Is it possible to define below configuration, as it was working fine for http:
public class MyHttpClientConfigurer implements HttpClientConfigurer {
    @Override
    public void configureHttpClient(HttpClient client) {
         DefaultHttpMethodRetryHandler retryhandler = new DefaultHttpMethodRetryHandler(0, false); 
            client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryhandler); 


    }
}

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.