Package org.jboss.soa.esb.http

Examples of org.jboss.soa.esb.http.ESBMultiThreadedHttpConnectionManager


     * Max connections per host.
     */
    public static final String MAX_CONNECTIONS_PER_HOST = "max-connections-per-host";

    public void configure(HttpClient httpClient, Properties properties) throws ConfigurationException {
        final HttpConnectionManager connectionManager = new ESBMultiThreadedHttpConnectionManager() ;
        final String maxTotalConnections = properties.getProperty(MAX_TOTAL_CONNECTIONS) ;
        final String maxConnectionsPerHost = properties.getProperty(MAX_CONNECTIONS_PER_HOST) ;

        connectionManager.setParams(new ESBHttpConnectionManagerParams(maxTotalConnections, maxConnectionsPerHost)) ;
        httpClient.setHttpConnectionManager(connectionManager);
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.http.ESBMultiThreadedHttpConnectionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.