I am using Zip data format for zipping files. But the issue is i am not able
to set dynamic file path even when using CamelFileName header.I can
dynamically set the file name but how do i dynamically set the file path
also.Here is my code : 
<routeContext id="zipFileRoute"
xmlns="http://camel.apache.org/schema/spring";>
<route id="zipFile">
<from
uri="file://C:/CdrJson?recursive=true&amp;delete=true&amp;filter=#myFilter"/>
<log message="reading from ${in.header.CamelFileName} and file path is
${file:path}"/>
<setHeader headerName="CamelFileName">
<simple>${bean:utility?method=processFileName}</simple>
</setHeader>
<marshal>
<zipFile/>
</marshal>
<to uri="file://C:/CdrJson"/>
<log message="This route finished zipping files"/>
</route>
</routeContext>
</beans>




--
View this message in context: 
http://camel.465427.n5.nabble.com/File-producer-issue-while-zipping-files-with-apache-camel-tp5792128.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to