Thanks for the feedback.

I've run into another issue.  I'm trying to route an incoming URI to a
different URI but HttpProducer method appends the original URI to the new
route in HttpProducer.createURL.

The following is the use case:
1.  Client requests http://server1:8080/public/users
2.  Proxy receives and routes request to http://server2:8080/private/users

My camel proxy produces the following in step 2:
http://server2:8080/private/users/public/users

My setup is as follows:

1.  Setup Dynamic Router
this.from("servlet:///?matchOnUriPrefix=true").dynamicRouter(method(CamelRoute.class,
"slip"));

2.  Slip method return new http route with bridgeEndpoint=true.

Is there anyway to prevent original path from being appended?  Or maybe i'm
missing a configuration.

Thanks in advance.

/Ramon



--
View this message in context: 
http://camel.465427.n5.nabble.com/Routing-REST-request-to-external-URI-tp5728852p5729139.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to