Hi Why are you using the dynamic router EIP? Just use
from to Or from recipientList Read the documentation about the Dynamic Router EIP, as what you do end up in a endless loop, as the dynamic router will re-evaluate the expression until it returns null. On Tue, Dec 13, 2011 at 10:03 PM, xverges <xver...@gmail.com> wrote: > 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. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/