This content has been marked as final.
Show 3 replies
-
1. Re: send original request to second endpoint after response from first endp
davsclaus Nov 10, 2009 12:24 AM (in response to lyfe)You could for example
a)
Store a copy of the original request as a property on the Exchange and then get that property back later and use as message
In the DSL you can use
.setProperty("foo", body());
....
// call that service
....
// and restore it back
.setBody(property("foo"))
b)
use pollEnrich to invoke the first request/reply and depending on the response merge/set the aggregated result.
-
2. Re: send original request to second endpoint after response from first endp
lyfe Nov 12, 2009 9:03 AM (in response to davsclaus)Ok..I'll give this a try...need to convert my routing code from Spring XML to Java DSL.
I think Java DSL will offer the flexiblity I want anyway.
Thanks.
-
3. Re: send original request to second endpoint after response from first endp
lyfe Nov 13, 2009 2:50 PM (in response to davsclaus)This worked for me. I wrote the setProperty and setBody code as an anonymous inner class process.