You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Guillermo <gl...@tecsisa.com> on 2013/09/29 15:47:37 UTC
Using different SSLContextParameters with HTTP4 component
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.
Re: Using different SSLContextParameters with HTTP4 component
Posted by Guillermo <gl...@tecsisa.com>.
Hi
Thank you for the information. I'll be waiting for more news.
Regards, Guillermo.
--
View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430p5741970.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Using different SSLContextParameters with HTTP4 component
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yeah this is a bug. I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-6880
On Mon, Sep 30, 2013 at 10:07 AM, Guillermo <gl...@tecsisa.com> wrote:
> Thanks for your reply Claus.
>
> But I still have a problem.
>
> My basic route definition is like this:
>
> ...
> ...
> .to("http4-foo:xxxx")
>
> In this case an exception is thrown by the method getPort in HttpComponent
> class because the scheme is not https4, http4, https or http:
>
> Unknown scheme, cannot determine port number for uri: xxxx
>
> Any ideas?
>
> Thank you for your attention.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430p5740460.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
Re: Using different SSLContextParameters with HTTP4 component
Posted by Guillermo <gl...@tecsisa.com>.
Thanks for your reply Claus.
But I still have a problem.
My basic route definition is like this:
...
...
.to("http4-foo:xxxx")
In this case an exception is thrown by the method getPort in HttpComponent
class because the scheme is not https4, http4, https or http:
Unknown scheme, cannot determine port number for uri: xxxx
Any ideas?
Thank you for your attention.
--
View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430p5740460.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Using different SSLContextParameters with HTTP4 component
Posted by Claus Ibsen <cl...@gmail.com>.
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 <gl...@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