You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/05/26 08:49:00 UTC

[jira] [Resolved] (CAMEL-19391) Camel Netty-Http appears to run only with context-path /camel

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

Claus Ibsen resolved CAMEL-19391.
---------------------------------
    Resolution: Not A Bug

camel.servlet is only for servlet http (eg what comes embedded in Spring Boot, Tomcat etc) and not netty or other http libraries

> Camel Netty-Http appears to run only with context-path /camel
> -------------------------------------------------------------
>
>                 Key: CAMEL-19391
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19391
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Dietrich Schulten
>            Priority: Major
>
> If I define the following application property in a Spring Boot application which uses netty-http:
> {code:java}
> camel:
>   servlet:
>     mapping:
>       context-path: /api/*{code}
> then the application reacts only when using the context-path {{/camel/*.}}
>  
> Expected: it should react at the context-path /api/*
>  
> Here is my dependency list:
> {code:java}
>        <dependency>
>             <groupId>org.springframework.boot</groupId>
>             <artifactId>spring-boot-starter-web</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.springframework.boot</groupId>
>             <artifactId>spring-boot-starter-actuator</artifactId>
>         </dependency>        
>         <dependency>
>             <groupId>org.apache.camel.springboot</groupId>
>             <artifactId>camel-spring-boot-starter</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel.springboot</groupId>
>             <artifactId>camel-platform-http-starter</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel.springboot</groupId>
>             <artifactId>camel-netty-http-starter</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel.springboot</groupId>
>             <artifactId>camel-groovy-starter</artifactId>
>         </dependency>  
>         <dependency>
>             <groupId>org.apache.camel.springboot</groupId>
>             <artifactId>camel-console-starter</artifactId>
>         </dependency> {code}
> My route entry for the netty-http consumer:
> {code:java}
> from("netty-http:proxy://0.0.0.0:8083?disableStreamCache=true") {code}
> I am silently hoping that I am just using the wrong property ;)
> If the netty-http component does not allow to redefine the context-path, where in the code would I have to look in order to make that possible?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)