You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "metatech (Created) (JIRA)" <ji...@apache.org> on 2011/11/22 16:44:39 UTC

[jira] [Created] (CAMEL-4703) Multiple route definitions with distinct "handlers" only take into account the first one

Multiple route definitions with distinct "handlers" only take into account the first one 
-----------------------------------------------------------------------------------------

                 Key: CAMEL-4703
                 URL: https://issues.apache.org/jira/browse/CAMEL-4703
             Project: Camel
          Issue Type: Improvement
          Components: camel-jetty
    Affects Versions: 2.6.0
         Environment: ServiceMix 4.3
            Reporter: metatech
            Priority: Minor


Here is an extract of my camel-config.xml :

<from uri="jetty:http://0.0.0.0:9000/route1?handlers=securityHandler1"/>
<from uri="jetty:http://0.0.0.0:9000/route2?handlers=securityHandler2"/>

The handler "securityHandler2" is ignored.

Impact : 2 routes cannot be defined with distinct security roles within the same bundle.

Cause : the JettyHttpComponent.createServletForConnector is called only once, therefore only "securityHandler1" is registered on the Jetty server instance.

This might be considered as an acceptable limitation and documented as such.

Workaround : use a different TCP port.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira