See this FAQ
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html



On Tue, Mar 8, 2011 at 4:04 AM, Bill <[email protected]> wrote:
> Hi,
> The In message contains the request message. and the Out message contains
> the reply message.
>
> But I confused as follows:
>
> When my route :          from() ---> process() ---> fileEndpoint.
>    In process, I set the file name, when I set the
> getIn().setHeader("CamelFileName","test.txt"); It runs well.
>    but when I set getOut().setHeader("CamelFileName","test.txt"); It throws
> org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
> store file: c:\ff\test.txt
>
>
> And when my route:    from() ---> process() ---> mailEndpoint.
>   In process, I set the headers( HashMap contains from,to,cc,subject and so
> on) to getIn() and getOut() ; It all runs well.
>
> What difference between above.
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/some-confused-with-In-and-Out-Message-tp3413474p3413474.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to