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 2019/03/18 11:01:00 UTC

[jira] [Resolved] (CAMEL-13333) Multiple servlets not supported

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

Claus Ibsen resolved CAMEL-13333.
---------------------------------
    Resolution: Won't Fix

Just use

rest("api1")
   .get

rest("api2")
   .get

To have each rest service prefix with their own context-path

> Multiple servlets not supported
> -------------------------------
>
>                 Key: CAMEL-13333
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13333
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-servlet
>    Affects Versions: 2.21.5
>         Environment: Apache Camel 2.21.5
>            Reporter: Robert Half
>            Priority: Major
>
> I think it's described pretty well in this stackoverflow question: [https://stackoverflow.com/questions/55127006/multiple-servlets-with-camel-servlet-possible/55197778#55197778|http://example.com/] 
> To sum up: you can work with only one ServletComponent in Camel and you can point it to only one servlet (at least with rest dsl). This means if you want to have /api/ui/health and /api/business/health with servlets "ui" mapped to /api/ui/* and "business" mapped to /api/business/* with camel rest dsl you cannot.
> When working with Camel on an Java EE app server, which only supports Java EE 6 like WebSphere 8.5, I cannot move to Spring 5 (EE 7) and thus 2.21 is the last Camel version, I can work with. I would appreciate a hotfix for this reason.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)