camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Servlet component matchOnUriPrefix is not working as documented
Date Wed, 26 Nov 2014 06:40:22 GMT
What version of Camel do you use?

And as a workaround then try flip the order of the 2 routes.

On Tue, Nov 25, 2014 at 11:36 PM, Amit <amitpatel2000@gmail.com> wrote:
> We are using Servlet component and we route two routes as below. When i send
> request to (route2) myservice/v1/ it process by route1.
>
> As per Servlet component document  "CamelServlet should try to find a target
> consumer by matching the URI prefix, if no exact match is found."
> is not valid.
>
>
>
>
> route1
> ========
> <route xmlns="http://camel.apache.org/schema/spring" trace="true">
>   <from uri="servlet:///?matchOnUriPrefix=true" />
>   <to uri="bean:helloWorld?method=speak"/>
> </route>
>
> route2
> =========
> <route xmlns="http://camel.apache.org/schema/spring" trace="true">
>   <from uri="servlet:///myservice/v1/>
>   <to uri="bean:helloWorld?method=speak"/>
> </route>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Servlet-component-matchOnUriPrefix-is-not-working-as-documented-tp5759604.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message