Hi,
We are using servicemix 3.3.1 and have a http service unit that is
configured to make REST POST requests to an external application server. We
do this by using a custom marshaler. What we are seeing is that the number
of concurrent requests made is more than we desire and would like to control
this. Is there any parameter that we can use? It seems that the parameters
in component.properties are all related to the jetty http server.
Here is how our xbean.xml looks like.
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>file:conf/Service.properties</value>
</property>
</bean>
<http:provider service="test:customRESTRequest" endpoint="endpoint"
marshaler="#inspectionRESTProviderMarshaler" />
<bean id="customRESTProviderMarshaler"
class="CustomRESTProviderMarshaler">
<property name="locationURI"
value="http://${externalserver}/SomeService/V1/" />
<property name="username" value="${username}" />
<property name="password" value="${password}" />
<property name="method" value="POST" />
<property name="contentType" value="application/x-www-form-urlencoded"
/>
</bean>
</beans>
Any suggestion/response is appreciated.
Thanks in advance,
Prasad
--
View this message in context:
http://old.nabble.com/Configuring-parameters-for-outgoing-http-requests-in-smx-3.3.1-tp28008597p28008597.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.