On Thu, Dec 19, 2013 at 9:16 PM, samslara <samsl...@yahoo.com> wrote: > Hello, > I have a question about the behavior of the jetty component when in an > OSGi environment (such as in ServiceMix). If I have two bundles each with a > camel context where one has a route such as: > > <from uri="jetty:http://0.0.0.0:8080/"/> > ... > > and the other has a route such as: > > <from uri="jetty:http://0.0.0.0:8080/application1"/> > ... > > and I call the container with > > http://<myip>:8080/application1/a/b/c > > Because of the overlapping url but with the second route being more specific > will this request go to the 2nd route, the 1st route, randomly to either or > will something else occur? >
The urls is not overlapping, the 1st is only matched if a client connects to / And the 2nd is only matched when you hit /application1. You need to use matchOnUriPrefix to allow matching on wildcards, see more details at http://camel.apache.org/jetty > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Jetty-component-and-overlapping-urls-when-a-consumer-tp5745068.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io