camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Overrule default http4 component
Date Tue, 23 Sep 2014 12:37:10 GMT
It should be OK to share the components across the camel contexts which is inside of the same
spring application context.

As camel context look up the component from the registry which delegates to the spring application
to look up the beans by using name.


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On September 23, 2014 at 6:23:08 PM, Geert Vanheusden (geertvh@aviovision.com) wrote:
> Hi,
>  
> I have two questions concerning overruling the default http4 component.
>  
> Currently I use the following Spring config to override the http4 component:
>  
> -----
> > class="org.apache.http.impl.conn.PoolingHttpClientConnectionManager">
>  
>  
>  
>  
>  
>  
>  
>  
>  
> > 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?
>  
>  
>  
> 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,
>  
> Geert
>  


Mime
View raw message