I'm using camel 2.16.0 and cxf 3.1.2.

I have an cxf endpoint as below in my camel context .. (TEST_ENDPOINT is an
actual endpoint)
<to
uri="cxf://{{TEST_ENDPOINT}}?dataFormat=payload&amp;loggingFeatureEnabled=true"
/>

I wanted to limit the number of HTTP connections to TEST_ENDPOINT, Tried
below but it doesn't help..

<bean id="http" class="org.apache.camel.component.http.HttpComponent">
                <property name="camelContext" ref="sendSMSContext_rest" />
                <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=&quot;&lt;b>maxTotalConnections*" value="5" />
        </bean>

When i do a load test, i can see 200+ ESTABLISHED connection, though
*maxTotalConnections* is 5 !!
any help is appreciated.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-do-connection-pooling-on-CXF-endpoint-tp5772289.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to