Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Servlet component matchOnUriPrefix is not working as documented

$
0
0
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>

Viewing all articles
Browse latest Browse all 5648

Trending Articles