[ 
https://issues.apache.org/jira/browse/CAMEL-4363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095877#comment-13095877
 ] 

Willem Jiang commented on CAMEL-4363:
-------------------------------------

Current camel-jetty component just binds one servlet to the JettyServer, so it 
is impossible to add the ResourceHandler there.
To support it , we need to create one servlet per jetty endpoint and just 
attach the consumer into the servlet.
It make sense that if we have multi jetty endpoint which has different 
configuration of session or security.
 

> Allow for static file handlers to be added to the jetty component
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4363
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4363
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jetty
>    Affects Versions: 2.6.0
>            Reporter: Joshua Watkins
>            Assignee: Willem Jiang
>            Priority: Minor
>              Labels: camel-jetty, handler, jetty
>
> As per the discussion here: 
> http://camel.465427.n5.nabble.com/Serving-static-pages-with-JettyComponent-td4711870.html
> A Jetty ResourceHandler or a ServletContextHandler cannot be added to the 
> jetty server to serve up pages that are not processed via camel routes. It 
> would be nice to utilize the currently running jetty server to serve up 
> pages/resources other than those represented via camel routes.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to