Yes in the receive methods that return an Exchange you have access to the out message where you can get the body/headers etc.
The receiveBody methods are for returning only the body. On Tue, Jan 21, 2014 at 12:22 AM, Knut-Håvard Aksnes <khaks...@gmail.com> wrote: > Is it possible using receive methods on ProducerTemplate to receive return > headers, that is headers set by the invoked route? > If the answer is no, are there a simple way of doing it without having to > define a new route for this purpose. (I need this in some unit tests for a > content enricher) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/OutHeaders-and-ProducerTemplate-tp5746262.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