PollingConsumer consumer = ftp.createPollingConsumer();
consumer.start();
// receive the remote ftp without timeout
Exchange result = consumer.receive();
// we must stop the consumer
consumer.stop();
// the result is the response from the FTP consumer (the downloaded file)
// replace the outher exchange with the content from the downloaded file
exchange.getIn().setBody(result.getIn().getBody());
}