On Tue, Mar 19, 2013 at 9:13 PM, mdo <manfred.doh...@gmail.com> wrote:
> Hello,
>
> I'm looking for a solution for processing (CSV) files with this flow:
>  * consume a list of CSV files (file:///incoming/)
>  * unmarshal the CSV contents of each file and process it with a bean
>  * if the processing was successful move the corresponding file to directory
> A
>  * otherwise move it to B
>

The file component has move and moveFailed options where you can
specify the directories to move the file.
http://camel.apache.org/file2


> When I unmarshal the CSV the in-message gets altered. I could reassemble the
> CSV in the end but I doubt that this is the most effective way. Another
> solution was to apply some sort of claim check EIP in order to restore the
> in-message after the processing.
>
> Is there a more straightforward way of doing this?
>
> Thanks, mdo.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Unmarshal-CSV-but-continue-route-with-unaltered-message-tp5729446.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to