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

ASF GitHub Bot commented on CAMEL-9911:
---------------------------------------

GitHub user johnament opened a pull request:

    https://github.com/apache/camel/pull/964

    CAMEL-9911 Match the default defined in metadata to POJO based instan…

    …tiation.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/johnament/camel camel-2.17.x

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/964.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #964
    
----
commit e3062dff4a1f4cdbc4ed647aef99bc00c6e76557
Author: John D. Ament <[email protected]>
Date:   2016-04-27T02:02:53Z

    CAMEL-9911 Match the default defined in metadata to POJO based 
instantiation.

----


> RestBindingMode auto not honored
> --------------------------------
>
>                 Key: CAMEL-9911
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9911
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.17.0
>            Reporter: John D. Ament
>            Assignee: John D. Ament
>             Fix For: 2.17.1, 2.18.0
>
>
> The usage of rest binding mode is confusing/doesn't work consistently.
> If you look at the field definition:
> {code}
>     @XmlAttribute @Metadata(defaultValue = "auto")
>     private RestBindingMode bindingMode;
> {code}
> You would expect that the default value is "auto" but in fact there is no 
> default when running.
> You need to explicitly set it in configuration, like this:
> {code}
> restConfiguration()
>                 .component("jetty")
>                 .port(9097)
>                 .bindingMode(RestBindingMode.auto)
>         ;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to