camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mywish <>
Subject camel-ftp via proxy
Date Mon, 24 Sep 2012 04:46:30 GMT
I am trying using camel-ftp to route file to ftp server via proxy.
But as I know, camel-ftp don't support proxy.
FTP4J is not a component of apache camel.

So I tried to using a custom ftpClient like this:
FTPClient client = new FTPClient();
System.getProperties().put("socksProxyPort", "8089");

client.addProtocolCommandListener(new PrintCommandListener(
		new PrintWriter(System.out)));


SimpleRegistry registry = new SimpleRegistry();
registry.put("client", client);


But I got following error:
Caused by: java.lang.IllegalArgumentException: Could not find a suitable
setter for property: ftpClient as there isn't a setter method with same
type: java.lang.String nor type conversion possible: No type converter
available to convert from type: java.lang.String to the required type: with value #client

I think ftp component doesn't support ftpClient option. but, there is an option like that.

Can someone help me with that error?
Is there another way to support ftp via proxy in camel?

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

View raw message