[ 
https://issues.apache.org/jira/browse/CAMEL-7899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Willem Jiang updated CAMEL-7899:
--------------------------------
    Description: 
Camel complains Failed to start route route3 because of Multiple consumers for 
the same endpoint is not allowed, when define the rest service on the same path.
{code}
 restConfiguration()
                .component("jetty")
                .host("localhost").port(8080)
                .contextPath("rest")
                .bindingMode(RestBindingMode.auto)
                .dataFormatProperty("prettyPrint", "true");
        rest("/say")
                .get("/hello").to("direct:hello")
                .get("/bye").consumes("application/json").to("direct:bye")
                .post("/bye").to("direct:bye");

        from("direct:hello")
                .transform().constant("Hello World");
        from("direct:bye")
                .transform().constant("Bye World");
{code}

Here is [the 
discussion|http://camel.465427.n5.nabble.com/Rest-DSL-with-Jetty-tp5757418.html]
 in the nabble.

  was:
Camel complains Failed to start route route3 because of Multiple consumers for 
the same endpoint is not allowed, when define the rest service on the same path.
{code}
 restConfiguration()
                .component("jetty")
                .host("localhost").port(8080)
                .contextPath("rest")
                .bindingMode(RestBindingMode.auto)
                .dataFormatProperty("prettyPrint", "true");
        rest("/say")
                .get("/hello").to("direct:hello")
                .get("/bye").consumes("application/json").to("direct:bye")
                .post("/bye").to("direct:bye");

        from("direct:hello")
                .transform().constant("Hello World");
        from("direct:bye")
                .transform().constant("Bye World");
{code}


> camel-jetty should support to define multiple http method for the rest service
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-7899
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7899
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jetty, el-jetty
>    Affects Versions: 2.14.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.14.1
>
>
> Camel complains Failed to start route route3 because of Multiple consumers 
> for the same endpoint is not allowed, when define the rest service on the 
> same path.
> {code}
>  restConfiguration()
>                 .component("jetty")
>                 .host("localhost").port(8080)
>                 .contextPath("rest")
>                 .bindingMode(RestBindingMode.auto)
>                 .dataFormatProperty("prettyPrint", "true");
>         rest("/say")
>                 .get("/hello").to("direct:hello")
>                 .get("/bye").consumes("application/json").to("direct:bye")
>                 .post("/bye").to("direct:bye");
>         from("direct:hello")
>                 .transform().constant("Hello World");
>         from("direct:bye")
>                 .transform().constant("Bye World");
> {code}
> Here is [the 
> discussion|http://camel.465427.n5.nabble.com/Rest-DSL-with-Jetty-tp5757418.html]
>  in the nabble.



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

Reply via email to