camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Created: (CAMEL-1328) Setting http connection manager params should be easier
Date Mon, 09 Feb 2009 13:06:59 GMT
Setting http connection manager params should be easier

                 Key: CAMEL-1328
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-http
    Affects Versions: 1.5.0
            Reporter: Claus Ibsen
             Fix For: 2.0.0, 1.6.1

You need to do this in spring DSL today:
<bean id="http" class="org.apache.camel.component.http.HttpComponent">
  <property name="httpConnectionManager" ref="myHttpConnectionManager"/>

<bean id="myHttpConnectionMananger" class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager">
   <property name="parms" value="myParams"/>

<bean id="myParams" class="org.apache.commons.httpclient.params.HttpConnectionManagerParams">
   <property name="maxConnectionsPerHost" value="5"/>

What if the HttpConnectionManagerParams could be set in the URI with all the introspection
support we already have for {{httpClient.}} prefix for URI options.

We need a similar prefix for the connection manager, so you can set eg setMaxConnectionsPerHost

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message