camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Vanheusden <>
Subject Overrule default http4 component
Date Tue, 23 Sep 2014 10:22:39 GMT

I have two questions concerning overruling the default http4 component.

Currently I use the following Spring config to override the http4 component:

<bean id="httpClientConnectionManager"
        <!-- Set timeout for connection -->
        <constructor-arg index="0" value="30" />
        <constructor-arg index="1" value="SECONDS" />

        <property name="maxTotal" value="500" />
        <property name="defaultMaxPerRoute" value="100" />

    <bean id="http4" class="org.apache.camel.component.http4.HttpComponent">
        <property name="clientConnectionManager"
ref="httpClientConnectionManager" />

So my first question is, is it possible to provide the following alias
config in Spring and does it work if I switch to https?

<alias name="http4" alias="https4" />

My second question involves passing the camelContext in the http4
component bean definition. As you can see above, I didn't set the
camelContext because I use multiple camel contexts in my application.
It seams to work without passing the context but is it ok to do this?
How is the context set when I don't set it in the bean definition?

Kind regards,


View raw message