Hi You need to use the actual value from these constants
ExecBinding.EXEC_COMMAND_EXECUTABLE Eg the value the constant has, is what you should type in the XML. On Fri, Feb 22, 2013 at 10:28 AM, MatteoRedaelli <matteo.redae...@gmail.com> wrote: > 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. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen