Or the dynamic router http://camel.apache.org/dynamic-router.html
But its often also easier to write a bean with a method, that has the looping logic, and then use a producer template (or pojo producing) to call the http and get the reply, and process it there. http://camel.apache.org/producertemplate.html http://camel.apache.org/pojo-producing.html Then from a Camel route its just calling the bean. http://camel.apache.org/bean On Mon, Mar 17, 2014 at 5:15 PM, Stephan Burkard <sburk...@gmail.com> wrote: > You could perhaps use the Loop EIP: https://camel.apache.org/loop.html > > It uses the result of the previous loop iteration for the next. You have to > define the criteria to stop the loop (for example as header variable). > > Hope this helps > Stephan > > > > > On Mon, Mar 17, 2014 at 3:13 AM, aidatechinc <hfao...@aidatech.com> wrote: > >> Hello, >> What is the best way to update a HTTP request using the response. So the >> service returns a position and this position needs to be sent in subsequent >> request. >> >> 1) post message with position 0 >> 2) read response >> 3) update request with new position from response >> 4) go back and post again >> >> >> any guide will be appreciated. >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/update-HTTP-request-using-previous-response-tp5748902.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