camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Output File Name After Exec
Date Wed, 09 Jan 2013 08:18:55 GMT
On Tue, Jan 8, 2013 at 9:44 PM, neilac333
<neil.chaudhuri@soteradefense.com> wrote:
> I have a Camel route that starts off with an executable for which I use exec
> and which produces an output file. The name of the file is specified in the
> outFile parameter to Exec. What I want to do next is to pass that file
> /name/--not the contents--in the message body to the next component in the
> route.
>
> Seems simple enough, but I don't see any clues in the documentation as to
> how to get that outFile name into a message body. Your insight is
> appreciated.
>

See this EIP
http://camel.apache.org/message-translator.html

To set the message body with the content of a message header

<transform>
   <header>myHeader</header>
</transform>

Using the header language
http://camel.apache.org/header.html



> Thanks.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Output-File-Name-After-Exec-tp5725152.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message