With karaf 2.3 and camel-core:2.10.5.SNAPSHOT it seems camel-exec does not
read ExecBinding.* header variables..
Caused by: [org.apache.camel.component.exec.ExecException - Unable to
execute command ExecCommand [args=[], executable=executable,
timeout=9223372036854775807, outFile=null, workingDir=null,
useStderrOnEmptyStdout=false]]
org.apache.camel.component.exec.ExecException: Unable to execute command
ExecCommand [args=[], executable=executable, timeout=9223372036854775807,
outFile=null, workingDir=null, useStderrOnEmptyStdout=false]
My route is
<route>
<from uri="direct:tlg.docs2solr.get_spsdoc" />
<setHeader headerName="ExecBinding.EXEC_COMMAND_EXECUTABLE">
<simple>/home/r/tlg2solr/get-spsdoc</simple>
</setHeader>
<setHeader headerName="ExecBinding.EXEC_COMMAND_WORKING_DIR">
<simple>/home/r/tlg2solr/</simple>
</setHeader>
<setHeader headerName="ExecBinding.EXEC_COMMAND_ARGS">
<simple>test ${in.header[url]}</simple>
</setHeader>
<to uri="exec:executable?args"/>
</route>
Is there anything wrong?
Regards
Matteo
http://www.redaelli.org/matteo/
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-exec-in-camel-blueprint-ExecBinding-headers-read-tp5728011.html
Sent from the Camel - Users mailing list archive at Nabble.com.