Hi.
If I understand it correct this is your case:
1. load master file with file names
2. load files from an other directory
3. decide where to save them
As Claus wrote - you should use here a file filter which reads in your
master file. But you have left all the files that are not on the list.
So a solution could be two file filters - one for the files on the list,
the other one for the rest. Create two routes with those both filters
and route them to the both directories you want.
Hope that helps.
Best regards - Claus
On 06.04.2011 16:24, jpalmer1026 wrote:
Hi Claus,
Thanks for the information. This is getting me a little closer but it still
doesn't solve my particular use case. What I'm actually trying to do is
route files based on filename. The filenames will be read in from an
external file upon the launch of the app and this filename list will then be
used to conditionally route the files. For example, if the initial list of
filenames that was read in is test10.txt, test20.txt and test30.txt, then
the filter would need to route any files with any of those filenames to one
directory and all other files to a different directory.
Does that make sense? Is there a way to do this with Camel?
--
View this message in context:
http://camel.465427.n5.nabble.com/Route-Question-tp4281861p4286385.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
claus straube
__________________________________________
phone +49-89-38157419
mobile +49-176-49673717
web http://www.catify.com
office 5. floor, heßstr. 56, 80798 munich
__________________________________________