You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Arnaud Deprez <ar...@gmail.com> on 2015/07/31 11:49:07 UTC
Camel Rest DSL context-path not taken into account with netty4-http
Hi,
Everything is in the subject.
I've some Rest DSL routes with the following rest configuration :
<restConfiguration bindingMode="json"
component="netty4-http"
host="0.0.0.0"
port="8888"
contextPath="camel/api">
<endpointProperty key="disableStreamCache" value="true"/>
<endpointProperty key="nettySharedHttpServer"
value="#sharedNettyHttpServer"/>
<dataFormatProperty key="prettyPrint" value="true"/>
</restConfiguration>
I used the shared http server as explained in the documentation and it
works fine except that the contextPath property is not taken into account
(my web services are available on "/xxx" and not on "/camel/api/xxx" as
expected.
I don't think there is a ticket for that, so I can create it if it's a bug.
Rgds,
A.
Re: Camel Rest DSL context-path not taken into account with netty4-http
Posted by Arnaud Deprez <ar...@gmail.com>.
Ah ok,
Thx for your feedback !
On Fri, Jul 31, 2015 at 12:39 PM Claus Ibsen <cl...@gmail.com> wrote:
> If I recall then the context-path in <restConfiguration> is only for
> documentation purposes and JMX API,
>
> you need still need to use that path as well in your rest-dsl
>
> On Fri, Jul 31, 2015 at 11:49 AM, Arnaud Deprez <ar...@gmail.com>
> wrote:
> > Hi,
> >
> > Everything is in the subject.
> >
> > I've some Rest DSL routes with the following rest configuration :
> >
> > <restConfiguration bindingMode="json"
> > component="netty4-http"
> > host="0.0.0.0"
> > port="8888"
> > contextPath="camel/api">
> > <endpointProperty key="disableStreamCache" value="true"/>
> > <endpointProperty key="nettySharedHttpServer"
> > value="#sharedNettyHttpServer"/>
> > <dataFormatProperty key="prettyPrint" value="true"/>
> > </restConfiguration>
> >
> > I used the shared http server as explained in the documentation and it
> > works fine except that the contextPath property is not taken into account
> > (my web services are available on "/xxx" and not on "/camel/api/xxx" as
> > expected.
> >
> > I don't think there is a ticket for that, so I can create it if it's a
> bug.
> >
> > Rgds,
> >
> > A.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2nd edition: http://www.manning.com/ibsen2
>
Re: Camel Rest DSL context-path not taken into account with netty4-http
Posted by Claus Ibsen <cl...@gmail.com>.
If I recall then the context-path in <restConfiguration> is only for
documentation purposes and JMX API,
you need still need to use that path as well in your rest-dsl
On Fri, Jul 31, 2015 at 11:49 AM, Arnaud Deprez <ar...@gmail.com> wrote:
> Hi,
>
> Everything is in the subject.
>
> I've some Rest DSL routes with the following rest configuration :
>
> <restConfiguration bindingMode="json"
> component="netty4-http"
> host="0.0.0.0"
> port="8888"
> contextPath="camel/api">
> <endpointProperty key="disableStreamCache" value="true"/>
> <endpointProperty key="nettySharedHttpServer"
> value="#sharedNettyHttpServer"/>
> <dataFormatProperty key="prettyPrint" value="true"/>
> </restConfiguration>
>
> I used the shared http server as explained in the documentation and it
> works fine except that the contextPath property is not taken into account
> (my web services are available on "/xxx" and not on "/camel/api/xxx" as
> expected.
>
> I don't think there is a ticket for that, so I can create it if it's a bug.
>
> Rgds,
>
> A.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2