camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Using different SSLContextParameters with HTTP4 component
Date Sun, 29 Sep 2013 13:55:03 GMT
Just use http4-foo and http4-bar as the component name, instead of
just http4, eg

eg use
<to uri="http4-foo:xxxx"/>


On Sun, Sep 29, 2013 at 3:47 PM, Guillermo <glammers@tecsisa.com> wrote:
> Hi,
>
> I'm using the http4 component (camel-http4) and I recently found a problem.
> Let me explain:
>
> I need to configure an endpoint with differents ssl configs each time. To do
> that, I have read in the camel docs that I can use different
> SSLContextParameters if I setup multiple HTTP4 components. For example, I
> have 2 components, each using their own instance of sslContextParameters
> property like this:
>
> <bean id="http4-foo" class="org.apache.camel.component.http4.HttpComponent">
>    <property name="sslContextParameters" ref="sslContextParams1"/>
> </bean>
>
> <bean id="http4-bar" class="org.apache.camel.component.http4.HttpComponent">
>    <property name="sslContextParameters" ref="sslContextParams2"/>
> </bean>
>
> The thing is: how can I make clear to the endpoint which component should it
> use? I mean, where should I write the name "http4-foo or http4-bar" to know
> for sure the config I should to use for each hhtp invocation?
>
> Thanks in advance.
>
> Guillermo.
>
> Additional info:
> Using camel version 2.11.2
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message