CamelFileName header when used on producer, it specifies the name of the file to write which is relative to the endpoint directory. For example, If your endpoint directory is c:/abc and CamelFileName header value is test/written.txt then file will get produced at location c:/abc/test/written.txt
In your code above, you can set CamelFileName header value along with the directory path you are expecting to be dynamic. -- View this message in context: http://camel.465427.n5.nabble.com/File-producer-issue-while-zipping-files-with-apache-camel-tp5792128p5792175.html Sent from the Camel - Users mailing list archive at Nabble.com.