Hello,

I'm using camel servlet as a proxy for a restful service.

The following scenario seems to work fine:
WAR1:
from("/users?matchOnUriPrefix=true")
.to("http://<myserver>:<port>/<rest-context>?bridgeEndpoint=true");

The above logic works for "http://localhost:8080/camel/rs/users/123";. It
gets resolved to "http://<myserver>:<port>/<rest-context>/people/123"

However, the following scenario doesn't seem to work:
WAR1:
from("/users?matchOnUriPrefix=true")
.to("direct-vm:gotoWar2");

WAR2:
from("direct-vm:gotoWar2")
.to("http://<myserver>:<port>/<rest-context>?bridgeEndpoint=true")

The above logic DOES NOT for "http://localhost:8080/camel/rs/users/123";. It
gets resolved to "http://<myserver>:<port>/<rest-context>/people/users/123"

Is there a way I could get rid of the additional "/users" in the second
scenario ?

Regards,
Kalyan




--
View this message in context: 
http://camel.465427.n5.nabble.com/Question-on-CamelServlet-s-matchOnUriPrefix-tp5732305.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to