JndiContext jndiContext = new JndiContext(); FTPClient ftpClient = new FTPClient(); InetSocketAddress proxyAddress = new InetSocketAddress ( "xxx.xx" , yyyy); Proxy proxy = new Proxy( Proxy.Type.HTTP , proxyAddress ); //ftpClient.setProxy(proxy); this.setFtpClient(ftpClient); // Will be used in ftp component // FTPClient ftpClient = new FTPClient(); ftpClient.setProxy(proxy); jndiContext.bind("ftpClient", this.ftpClient); setCamelContext(new DefaultCamelContext(jndiContext));
ftp://{username}@{host}{path}?password=****&maximumReconnectAttempts=5&reconnectDelay=5000&binary=true&passiveMode=true&delete=true&include=XXX.*\.CSV&ftpClient=#ftpClient
Caused by: java.lang.InternalError: Should not reach here at java.net.HttpConnectSocketImpl.doTunneling(HttpConnectSocketImpl.java:181) at java.net.HttpConnectSocketImpl.doTunnel(HttpConnectSocketImpl.java:168)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)