camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Roger <olivier.ro...@gmail.com>
Subject [Camel-Exec] Properties and Header values in URI ?
Date Tue, 13 Jul 2010 13:42:55 GMT

Hello,

Is it possible to use values that have been set in the header (setHeader) or
in a property (setProperty) to changes the arguments given to the Camel-exec
component ?
Here under is an example of what I have in mind:

	<from uri="direct:test" />

	<setProperty
propertyName="InputFile"><constant>test.csv</constant></setProperty>
	<setHeader headerName="Arguments"><constant>ok 123</constant></setHeader>

	<to uri="exec:perl?args=perl.pl ${property.InputFile}
${in.headers.Arguments}$&amp;workingDir=target\classes" />
	<log message="Executing Perl perl.pl" loggingLevel="INFO" logName="myLog"/>

	<to ref="out" />

Thank in advance,

Olivier
-- 
View this message in context: http://camel.465427.n5.nabble.com/Camel-Exec-Properties-and-Header-values-in-URI-tp1046744p1046744.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Mime
View raw message