Hello all.

I've tried to create an http proxy/router using dynamic routing. The
simplest attempt was

  from("jetty:http://0.0.0.0:8080/dynamic/?matchOnUriPrefix=true";)
 
.dynamicRouter(constant("http://www.google.com/?q=camel&bridgeEndpoint=true&throwExceptionOnFailure=false";));

It doesn't work, but I'm not even sure if it should. 

The thing is that it gets into an endless loop of

  HttpProducer         DEBUG Executing http GET method:
http://www.google.com/?q=camel
  HttpProducer         DEBUG Http responseCode: 200
  HttpProducer         DEBUG Executing http GET method:
http://www.google.com/?q=camel
  HttpProducer         DEBUG Http responseCode: 200
  HttpProducer         DEBUG Executing http GET method:
http://www.google.com/?q=camel
  HttpProducer         DEBUG Http responseCode: 200

Did I hit a bug or am I attempting something that doesn't make any sense?

Thanks for your time.
-Xavier

--
View this message in context: 
http://camel.465427.n5.nabble.com/Dynamic-routing-and-bridgeEndpoint-tp5072766p5072766.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to