I’m using Camel to process files, and need to save a copy of each incoming file to an 'archive' directory. In addition, if another file arrives with the same name as an earlier file, I must add this to the archive with a different file name and not overwrite an existing archive file.
Two questions: 1. Does Camel have something built-in to deal with duplicate messages this way? This differs from ‘Idempotent Consumer’ in that I don't want to skip duplicate files. 2. If there is nothing built in, what do I need to do to implement my own 'De-duplicating Archive' end point? Note that I have to implement a specific (and weird) file naming strategy: repeatedly receiving 'foo.msg' must result in foo.msg, foo.msg-1, foo.msg-2, foo.msg-3, … I'm using: Camel 2.11.0, Scala DSL, Scala 2.10.0, sbt 0.12.2, JDK 1.6.0_43, OSX 10.8.3 Peter