camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atanas Shindov <>
Subject FTP Component configuration
Date Sat, 22 Nov 2014 18:13:00 GMT
Hi guys,

After I've watched the  Riding Camel
<>   presentation by
James Strachan I tried to implement a route where all endpoints are FTP
based, but instead of configuring each FTP endpoint with hostname, port, and
login credentials, I wanted to configure all this just once on a
FtpComponent and have all these configurations automatically applied to all
my endpoints created with this component. I imagined that Camel would allow
me to do something like this:

FtpComponentConfiguration config = new FtpComponentConfiguration();
FtpComponent ftp = new FtpComponent(config);

context.addComponent("myFtp", ftp);

And then my route's DSL would look like this:


However, it looks like that Camel's FTP component can't be used like this
(or at least I can't find a way to do it) which is very strange considering
the fact that James used namely FTP as an example to explain the idea behind
the components. I've used this approach for JMS - you configure a JMS
component just once with that's necessary (e.g. connection factory), and
then refer it in each JMS endpoint.

Am I missing something or the current implementation of FTP does not allow

Best regards,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message