Hi

There's a routing use case currently I'm stuck with which goes as the
following:

- Download an index file from a FTP server containing the list of (to be
downloaded) files which're listed in this index file line by line
- Do some futher processing with the index file being downloaded which is
not relevant here
- Download each file being listed inside the index file one after another.
Any other potential file not being referenced inside the index file should
be ignored 
- Do some further processing with each file being downloaded which is not
relevant here

The requirement is

- Make use of Spring DSL
- *If* possible do not write any single line of java code but make use of
what Spring DSL can offer

My first try was:

from ftp://...fileName=index.txt
   to file://...
   ...
   convertBodyTo String
   split
      tokenize ...
      pollEnrich ftp://...fileName=...${in.body}
      ...
   split

Now there're two problems here:

According to what the read box says here:
  http://camel.apache.org/content-enricher.html

I can not access anything from the current exchange to tell the pollEnrich
the file name I want to download. 

And according:
 
http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-td4939908.html

I can not make use of any other expression to tell the FTP polling consumer
which file I intend to download.

I appreciate any hint you could give me.

Babak




--
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-with-pollEnrich-tp5722285.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to