Re: update HTTP request using previous response

2014-03-18 Thread aidatechinc
thanks that did the trick. On 03/17/2014 11:16 AM, Stephan Burkard [via Camel] 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 h

Re: update HTTP request using previous response

2014-03-18 Thread aidatechinc
Geat. thanks for the tip. The loop route actually did the trick. On 03/18/2014 01:30 AM, Claus Ibsen-2 [via Camel] wrote: > Hi > > You likely need to reset the stream cache to be able to re-read it again > org.apache.camel.StreamCache#reset > > On Tue, Mar 18, 2014 at 3:43 AM, aidatechinc <[hidd

Re: update HTTP request using previous response

2014-03-17 Thread Claus Ibsen
Hi You likely need to reset the stream cache to be able to re-read it again org.apache.camel.StreamCache#reset On Tue, Mar 18, 2014 at 3:43 AM, aidatechinc wrote: > Thanks for taking the time to respond. We did write a bean to handle the > message, but we realize that since we enable the strea

Re: update HTTP request using previous response

2014-03-17 Thread aidatechinc
Thanks for taking the time to respond. We did write a bean to handle the message, but we realize that since we enable the streamCache, the message gets overwritten while we are processing it. Is that due to the stream? Ideally we want to handle and process one message at a time, but the stream

Re: update HTTP request using previous response

2014-03-17 Thread Claus Ibsen
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/producertemp

Re: update HTTP request using previous response

2014-03-17 Thread Stephan Burkard
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 wrote