Hello V, It sound like you are looking for the content enricher (possibly the pollEnricher) [1]. If I remember correctly, content enricher with file or ftp uri, it has the limitation that this only polls one file at the time and not an entire batch.
If you are more interested in starting/stopping polling from a control channel you can use a route policy[2] which a second control route manipulates to start/stop. A similar solution would be to implement a poll strategy [3][4] that is controlled by messages on a separate control route. Returning false from the begin method will stop the FTP endpoint from actually polling. [1] http://camel.apache.org/content-enricher.html [2] http://camel.apache.org/routepolicy.html [3] http://camel.apache.org/polling-consumer.html [4] http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/PollingConsumerPollStrategy.html Best regards Pontus Ullgren On Tue, Aug 7, 2012 at 8:32 PM, vishal1981 <vishal.changr...@ericsson.com> wrote: > Hi, > In the older documentation for FTP component I found this, > "Consuming a remote FTP server triggered by a route > The FTP consumer is built as a scheduled consumer to be used in the from > route. However if you want to start consuming from a FTP server triggered > within a route it's a bit cumbersome to do this in Camel 1.x (we plan to > improve this in Camel 2.x). However it's possible as this code below > demonstrates." > > This is exactly what I want to do i.e. Consume on demand and not poll. > But I cannot find any such improvement/support in 2.x. Was the support > added? Am I missing something? > > Thanks in advance, > V > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Consuming-a-remote-FTP-server-triggered-by-a-route-in-Camel-2-9-tp5716940.html > Sent from the Camel - Users mailing list archive at Nabble.com.