[ 
https://issues.apache.org/jira/browse/CAMEL-13500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838010#comment-16838010
 ] 

Claus Ibsen commented on CAMEL-13500:
-------------------------------------

{code}
2019-05-12 08:35:02,793 [main           ] INFO  MainSupport                    
- Auto configuring 2 components/dataformat/languages from loaded properties: 2
Exception in thread "main" java.lang.IllegalArgumentException: Cannot configure 
option [configuration.max-header-size] with value [1234] as the bean class 
[org.apache.camel.component.netty4.http.NettyHttpComponent] has no suitable 
setter method, or not possible to lookup a bean with the id [1234] in Camel 
registry
        at 
org.apache.camel.main.MainSupport.setCamelProperties(MainSupport.java:980)
        at 
org.apache.camel.main.MainSupport.autoConfigurationFromProperties(MainSupport.java:869)
        at 
org.apache.camel.main.MainSupport.postProcessCamelContext(MainSupport.java:801)
        at 
org.apache.camel.main.MainSupport.initCamelContext(MainSupport.java:676)
        at org.apache.camel.main.Main.doStart(Main.java:107)
        at 
org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:86)
        at org.apache.camel.main.MainSupport.run(MainSupport.java:203)
        at org.apache.camel.main.MainSupport.run(MainSupport.java:623)
        at org.apache.camel.example.MyApplication.main(MyApplication.java:38)
{code}

> Component configuration - Allow to use dot to refer to nested options
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-13500
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13500
>             Project: Camel
>          Issue Type: Task
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0, 3.0.0-M3
>
>
> For example some Camel components has nested options like camel-netty4 which 
> has a NettyConfiguration class. 
> So when you want to set some of its options you cannot easily do this via 
> component configuration. We have some special support for spring boot that 
> generated these nested options, but its also needed for other use-cases such 
> as the Camel Main and just in general.
> For example with SB we can do
> camel.component.netty4-http.configuration.max-header-size
> We should add support for doing this via Camel Main and in general also



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to