cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From niteshjain132 <niteshjain...@gmail.com>
Subject How to do connection pooling on CXF endpoint
Date Tue, 06 Sep 2016 05:52:55 GMT
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-tp5772290.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message