camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <>
Subject Re: File2 Consumer - Multiple file problem
Date Wed, 01 Jun 2016 04:38:54 GMT
1. You can collect the multiple txt files by placing a pattern i.e. (*.txt)
in your file consumer URI. But first you need to configure a .done file in
your file consumer route. Basically the .done means that only when the xml
file is generate should you consume the txt files.
2. I am guessing the txt files will have different names? The main problem
is to write a good aggregation strategy if you want to combine all the
payload and then send to the FTP or decide it is ok to send them one by one.

On Wed, Jun 1, 2016 at 12:37 AM, bwest [via Camel] <> wrote:

> Greetings,
> I have the following question, I will try to lay the scenario as clearly
> as possible.  If this isn't clear, my apologies up front.
> I have a directory, that will have multiple files dropped into it.  The
> file are text files and as part of this generation process they will have a
> guid generated and place as part of the filename.  Additionally as part of
> these .txt files, a corresponding "control file" will also be dropped.
> This control file is what I want to drive my camel consumer process with.
> Below is conceptually what i'm thinking about.
> *For example the directory could look like below:*
> file-a-123abc456.txt
> file-a-123abc456.txt
> file-a-123abc456.xml
> What I'd like to do is configure the file consumer to be triggered by the
> .xml control file.  Once the consumer file process is triggered, I'd then
> like to somehow read all the corresponding payload files (.txts) and insert
> them onto the exchange.
> So with the above being said,  a couple of questions"
> 1)  Can I collect the multiple .txts and insert them "manually" on the
> exchange?  Mimicking the camel file consumer process?
> 2)  If number one is possible, I'd like to then pass the exchange onto an
> FTP producer.  Is this the most efficient way to ftp multiple files?
> I'm a bit new to Camel and if these are incorrect assumptions, please
> forgive.  I'm open to any and all suggestions as to the best way of
> handling the above scenario.
> Thanks,
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> To start a new topic under Camel - Users, email
> To unsubscribe from Camel - Users, click here
> <>
> .
> <>

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message