Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A2A3D410 for ; Mon, 24 Sep 2012 05:45:54 +0000 (UTC) Received: (qmail 6001 invoked by uid 500); 24 Sep 2012 05:45:54 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 5962 invoked by uid 500); 24 Sep 2012 05:45:54 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Delivered-To: moderator for dev@camel.apache.org Received: (qmail 93333 invoked by uid 99); 24 Sep 2012 04:46:56 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of mywish07@gmail.com) Date: Sun, 23 Sep 2012 21:46:30 -0700 (PDT) From: mywish To: dev@camel.apache.org Message-ID: <1348461990336-5719819.post@n5.nabble.com> Subject: camel-ftp via proxy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, 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"); System.getProperties().put("socksProxyHost","localhost"); client.addProtocolCommandListener(new PrintCommandListener( new PrintWriter(System.out))); client.setConnectTimeout(2000); client.setDefaultTimeout(2000); SimpleRegistry registry = new SimpleRegistry(); registry.put("client", client); from("file://dir").to("ftp://localhost:21/test?username=guest&password=guest&binary=true&ftpClient=#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: org.apache.commons.net.ftp.FTPClient with value #client I think ftp component doesn't support ftpClient option. but http://camel.apache.org/ftp2.html, 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: http://camel.465427.n5.nabble.com/camel-ftp-via-proxy-tp5719819.html Sent from the Camel Development mailing list archive at Nabble.com.