Examples of ESBMultiThreadedHttpConnectionManager


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
Copyright © 2018 www.massapi.com. 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.