camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Deprez <arnaudep...@gmail.com>
Subject Re: Camel Rest DSL context-path not taken into account with netty4-http
Date Fri, 31 Jul 2015 11:24:41 GMT
Ah ok,
Thx for your feedback !

On Fri, Jul 31, 2015 at 12:39 PM Claus Ibsen <claus.ibsen@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 <arnaudeprez@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message