I wish to change the file (or ftp) Camel component behaviour according to some value, for intance the value of a header. I see in the Camel File documentation I can dynamically change the "CamelFilename" header, but ca we do the same with other options such as "fileexist" ?
My goal is to use only 1 FTP producer to write all files, some of them can be overriden and the others can't.
You can use Camel's .toD(..)
More info: http://camel.apache.org/message-endpoint.html#MessageEndpoint-DynamicTo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.