You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Debraj Manna <su...@gmail.com> on 2016/07/18 13:29:09 UTC

Overriding default properties in camel http4 component via blueprint

I want to change maxTotalConnections and connectionsPerRoute in camel
http4 component
via blueprint.

Can some one please let me know is it possible to do this or I have to send
this as URI option?

I am on camel 2.16.3

Re: Overriding default properties in camel http4 component via blueprint

Posted by Antoine DESSAIGNE <an...@gmail.com>.
Hello.

It looks like you can configure it with the URI options. I've tried with
2.16.2 which is quite close.

<from
uri="http4://localhost:8081?maxTotalConnections=1234&amp;connectionsPerRoute=1234"
/>

Antoine.

2016-07-19 12:02 GMT+02:00 Claus Ibsen <cl...@gmail.com>:

> Some components allow to configure component level options, which you
> do the <bean> style.
>
> <bean id="http4" class="....HttpComponent">
>   <property ...>
> </bean>
>
> Which is standard blueprint / spring xml style.
>
> Then the Camel routes that use http4 (the id of the bean) is using
> that component. You can give the id any name you like instead of
> http4.
>
>
>
> On Mon, Jul 18, 2016 at 3:29 PM, Debraj Manna <su...@gmail.com>
> wrote:
> > I want to change maxTotalConnections and connectionsPerRoute in camel
> > http4 component
> > via blueprint.
> >
> > Can some one please let me know is it possible to do this or I have to
> send
> > this as URI option?
> >
> > I am on camel 2.16.3
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: Overriding default properties in camel http4 component via blueprint

Posted by Claus Ibsen <cl...@gmail.com>.
Some components allow to configure component level options, which you
do the <bean> style.

<bean id="http4" class="....HttpComponent">
  <property ...>
</bean>

Which is standard blueprint / spring xml style.

Then the Camel routes that use http4 (the id of the bean) is using
that component. You can give the id any name you like instead of
http4.



On Mon, Jul 18, 2016 at 3:29 PM, Debraj Manna <su...@gmail.com> wrote:
> I want to change maxTotalConnections and connectionsPerRoute in camel
> http4 component
> via blueprint.
>
> Can some one please let me know is it possible to do this or I have to send
> this as URI option?
>
> I am on camel 2.16.3



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2