Hi

What camel version do you use?

And can you try add something after recipient list, such as

<to uri="log:foo?showAll=true"/>

And see if you have the header now,

On Thu, Aug 14, 2014 at 6:18 PM, Gonzalo Vasquez <gvasq...@altiuz.cl> wrote:
> Hi there!
>
> Experimenting with the exec endpoint I found out that it works perfectly 
> (setting CamelExecExitValue header) when invoked with hardcoded args, such as:
>
> <camel:to uri="exec:///opt/ibm/ondemand/V9.0/bin/arsload?args=-f -g FONDO -h 
> 192.168.10.77 -u admin -p password 
> /tmp/ID-MacBook-Pro-de-Gonzalo-Vasquez-local-64241-1408030173940-0-1" />
>
>
>
> But fails silently on setting headers (CamelExecExitValue not set, and blank 
> body )when invoked as a receipientList endpoint, with variable parameters 
> such as:
>
>                                 <camel:recipientList>
>                                         <camel:simple>
>                                 exec://{{cmod.arsLoad}}?args=-f -g 
> ${in.header.appGroup} -h {{cmod.host}} -u {{cmod.username}} -p 
> {{cmod.password}} {{tmp.path}}/${id}</camel:simple>
>                                 </camel:recipientList>
>
>
> I actually need to use the second approach as the arguments to my command are 
> determined in runtime.
>
> Am I doing something wrong or the recipientList actually removed the expected 
> headers?
>
>
> PS: This is derived from my previous post at 
> http://camel.465427.n5.nabble.com/Retrieving-EXEC-EXIT-VALUE-from-exec-endpoint-td5755188.html
>
> Regards,
>
> Gonzalo Vasquez



-- 
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
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to