Karaf container does not use fixed "defaultMaxConnectionsPerHost" and "maxTotalConnections" for camel-http component
Issue
JBoss Fuse karaf container does not use fixed defaultMaxConnectionsPerHost and maxTotalConnections for commons-httpclient used by camel-http component.
<bean id="http" class="org.apache.camel.component.http.HttpComponent">
<property name="camelContext" ref="camel"/>
<property name="httpConnectionManager" ref="myHttpConnectionManager"/>
</bean>
<bean id="myHttpConnectionManager" class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager">
<property name="params" ref="myHttpConnectionManagerParams"/>
</bean>
<bean id="myHttpConnectionManagerParams" class="org.apache.commons.httpclient.params.HttpConnectionManagerParams">
<property name="defaultMaxConnectionsPerHost" value="200"/>
<property name="maxTotalConnections" value="400"/>
</bean>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring" trace="true">
<route>
<from uri="direct:start"/>
<to uri="http://sample"/>
<to uri="mock:result"/>
</route>
</camelContext>
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.