I am processing a REST call using CXFRS and then sending that to a mongodb endpoint, and finally building up the Response for the CXFRS endpoint. I would like to access the headers that CXFRS puts in the Exchange when I build up the Response (I probably need to get some Context objects out of the body as well). However, the mondodb endpoint gives me a new Exchange with all of the headers gone.
How can I best handle this? The only thing I can think of at this point is to do a processor and have a producer in the processor that sends a message to the mongodb endpoint and then I can take that result and continue use the Exchange that came in from the CXFRS call into the processor. Are there any other options? Jason