Setting maximumPoolSize of netty-http via restConfiguration

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting maximumPoolSize of netty-http via restConfiguration

derari
Hi,

I was unable to configure maximumPoolSize using below code:

            restConfiguration()
                .component("netty-http")
                .componentProperty("maximumPoolSize ", "200");

Using this code did the trick

            NettyHttpComponent o =
getContext().getComponent("netty-http", NettyHttpComponent.class);
            o.setMaximumPoolSize(200);

Is this intentional?

Best regards,
Arian
Reply | Threaded
Open this post in threaded view
|

Re: Setting maximumPoolSize of netty-http via restConfiguration

Claus Ibsen-2
Hi

What Camel version are you using?

On Fri, Mar 27, 2020 at 10:01 AM Arian Treffer <[hidden email]> wrote:

>
> Hi,
>
> I was unable to configure maximumPoolSize using below code:
>
>             restConfiguration()
>                 .component("netty-http")
>                 .componentProperty("maximumPoolSize ", "200");
>
> Using this code did the trick
>
>             NettyHttpComponent o =
> getContext().getComponent("netty-http", NettyHttpComponent.class);
>             o.setMaximumPoolSize(200);
>
> Is this intentional?
>
> Best regards,
> Arian



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Reply | Threaded
Open this post in threaded view
|

Re: Setting maximumPoolSize of netty-http via restConfiguration

derari
Hi,

Sorry I forgot to mention. It’s 3.0.1

Best
Arian

Claus Ibsen <[hidden email]> schrieb am Fr. 27. März 2020 um 10:11:

> Hi
>
> What Camel version are you using?
>
> On Fri, Mar 27, 2020 at 10:01 AM Arian Treffer <[hidden email]> wrote:
> >
> > Hi,
> >
> > I was unable to configure maximumPoolSize using below code:
> >
> >             restConfiguration()
> >                 .component("netty-http")
> >                 .componentProperty("maximumPoolSize ", "200");
> >
> > Using this code did the trick
> >
> >             NettyHttpComponent o =
> > getContext().getComponent("netty-http", NettyHttpComponent.class);
> >             o.setMaximumPoolSize(200);
> >
> > Is this intentional?
> >
> > Best regards,
> > Arian
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>